I am writing a php app on my local machine and would like to test to see if SSL is working. Bear with me because this is the first time I've ever used SSL.
So far this is what I've done:
- Created a SSL Certificate. I followed the first part of this this tutorial to create the certificate.
- I imported the
server.crt
file into chrome. - Removed the semicolon in front of
;extension=php_openssl.dll
inphp.ini
(reference) - Edited my
httpd-vhosts.conf
file based on this page. The relevant section of that file is below. This is the full file: http://pastebin.com/k6Jh2eR6<VirtualHost *> DocumentRoot "C:\Users\user_name\Documents\project_one" ServerName project_one.localhost SSLEngine on SSLCertificateFile "conf/ssl.crt/server.crt" SSLCertificateKeyFile "conf/ssl.key/server.key" <Directory "C:\Users\user_name\Documents\project_one"> AllowOverride All Order allow,deny Allow from all </Directory> </VirtualHost>
I would usually access my project by typing in http://project_one.localhost
When trying to access my project by typing https://project_one.localhost
into chrome I automatically get forwarded to https://project_one.localhost/xampp/
(as if XAMPP doesn't recognize https://project_one.localhost
as a subdomain at all and treats it as if I'm typing in https://localhost
) Any idea where I'm screwing up?
NOTE:
LoadModule ssl_module modules/mod_ssl.so
was uncommented inhttpd.conf
file
localhost
,localhost.localdomain
andproject_one.localhost
) in the Subject Alternate Names (SANs).