Wamp SSL
Wamp SSL
Recently, I've started working on one project where we need to set up a virtual host with HTTPS because I
need to run that project with expose and Shopify in my local development machine. I've wamp 3.2.3 on my
local machine.
I spent a lot of time setting it. so, I thought I should write one article for a step by step guide. So, I will show
you in this article how to set up HTTPS for a local machine.
I hope you successfully installed OpenSSL on your machine. let's take the next step
cd C:\Program Files\OpenSSL-Win64\bin
Let's create a private key which is 2048 bits encryption. fire one by one the following two commands to
create it.
openssl req -new -x509 -nodes -sha1 -key private.key -out certificate.crt -days 36500
Include conf/extra/httpd-ssl.conf
DocumentRoot "${INSTALL_DIR}/www"
ServerName localhost:443
ServerAdmin [email protected]
SSLCertificateKeyFile "${SRVROOT}/conf/key/private.key"
SSLCertificateFile "${SRVROOT}/conf/key/certificate.crt"
Make sure, these following all lines are set or not. if not, add it as well.
SSLSessionCache "shmcb:${SRVROOT}/logs/ssl_scache(512000)"
CustomLog "${SRVROOT}/logs/ssl_request.log" \
SSLEngine on
SSLCertificateFile "${SRVROOT}/conf/key/certificate.crt"
SSLCertificateKeyFile "${SRVROOT}/conf/key/private.key"
If you see a green WAMP icon everything should be right. If the icon is orange there is a problem with your
syntax somewhere.
Open terminal and go to the D:\wamp64\bin\apache\apache2.4.46\bin and run httpd -t in the command
prompt and if there are any syntax errors they will be listed.
Previous
Next
Products
InfyChat
InfyProjects
Subscribe to our Newsletter Subscribe
InfyHMS
InfyCRM
Open Source
Company Contact
Career Follow Us
HIRING