Install SSL on windows localhost WAMP HTTP + SSL = HTTPS
Here we are going to see how to install SSL certificate in Windows localhost WAMP server.
Lot many times our production servers are installed with SSL certificates and our local development machines uses noramal http, and this makes our development system different from our production one. And as a developer we always like to have an exact environment like our production system. So here’s the guide how to install self created SSL certificate on your local WAMP installation and use Https communication with your local WAMP.
Here are the things we are going to do
- Download & install WAMP (Assuming that WAMP is installed in C: directory)
- Download & install OpenSSL
- Configure WAMP to use HTTP+SSL=HTTPS
Watch the video tutorial to know about the detailed step by step procedure.
Download & install WAMP (Assuming that WAMP is installed in C: directory)
Download & install OpenSSL
Configure WAMP to use HTTP+SSL=HTTPS
Path to openssl.exe : C:wampbinapacheapache2.4.9binopenssl.exe
Path to openssl.cnf : C:wampbinapacheapache2.4.9confopenssl.cnf
CMD in Path to openssl.exe :::
openssl genrsa -aes256 -out private.key 2048
openssl rsa -in private.key -out private.key
openssl req -new -x509 -nodes -sha1 -key private.key -out certificate.crt -days 36500 -config C:wampbinapacheapache2.4.9confopenssl.cnf
Now copy the privateKey & certificate into folder
Open httpd.conf & uncomment following
LoadModule ssl_module modules/mod_ssl.so
LoadModule socache_shmcb_module modules/mod_socache_shmcb.so
Open php.ini (wampbinphpphp5.5.12php.ini)
(Below this line check following parameters)
httpd -t (To check the validity of file)