Enabling and Configuring SSL
Enabling and Configuring SSL
Next, we need to remove the pas phrase from the key to that the server does pause to request it.. which would be a bit annoying !
openssl rsa -in myserver.key -out myserver.pem
Create an directory under: C:\\wamp\\bin\\apache\\apache2.2.6\\conf\\ssl and move the myserver.key and myserver.cert into it.
Now create a new virtual host like so (in addition to any normal port 80 entries): This has a complete symfony setup up too FYI
<VirtualHost *:443> ServerName neubreed.localhost DocumentRoot "/home/neubreed/web" DirectoryIndex index.php Alias /sf c:\\wamp\\bin\\php\\php5.2.5/PEAR/data/symfony/web/sf <Directory "c:\\wamp\\bin\\php\\php5.2.5\\PEAR/data/symfony/web/sf"> AllowOverride All Allow from All </Directory> <Directory "/home/neubreed/web"> AllowOverride All Allow from All </Directory> # These are the actual SSL directives needed to get it all working! SSLEngine on SSLCertificateFile C:/wamp/bin/apache/apache2.2.6/conf/ssl/myserver.crt SSLCertificateKeyFile C:/wamp/bin/apache/apache2.2.6/conf/ssl/myserver.pem </VirtualHost>