Credit Goes to: Ankit Wasankar

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
  1. Download & install WAMP (Assuming that WAMP is installed in C: directory)

  2. Download & install OpenSSL

  3. Configure WAMP to use HTTP+SSL=HTTPS
Watch the video tutorial to know about the detailed step by step procedure.

Step 1:

Download & install WAMP (Assuming that WAMP is installed in C: directory)

Step 2:

Download & install OpenSSL

Step 3:

Configure WAMP to use HTTP+SSL=HTTPS

    Path to openssl.exe : C:\wamp\bin\apache\apache2.4.9\bin\openssl.exe
    Path to openssl.cnf : C:\wamp\bin\apache\apache2.4.9\conf\openssl.cnf

Step 5:

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:\wamp\bin\apache\apache2.4.9\conf\openssl.cnf

Now copy the privateKey & certificate into folder

Step 6:

Open httpd.conf & uncomment following

LoadModule ssl_module modules/
Include conf/extra/httpd-ssl.conf
LoadModule socache_shmcb_module modules/

Open php.ini (wamp\bin\php\php5.5.12\php.ini)


Step 7:

    C:\wamp\bin\apache\apache x.x.x\conf\extra\httpd-ssl.conf
    (Below this line check following parameters)

    DocumentRoot "C:/wamp/www"
    ServerName localhost:443
    ServerAdmin [email protected]
    ErrorLog "C:/wamp/bin/apache/apache2.4.9/logs/ssl_error.log"
    TransferLog "C:/wamp/bin/apache/apache2.4.9/logs/ssl_access.log"

    SSLCertificateFile "C:/wamp/bin/apache/apache2.4.9/conf/key/certificate.crt"
    SSLCertificateKeyFile "C:/wamp/bin/apache/apache2.4.9/conf/key/private.key"


    httpd -t (To check the validity of file)
Thanks given by:

Thanks given by:

(2017-Mar-31-10:01 pm)Desmond Wrote: Wonderful!

You're welcome!
Thanks given by:

Possibly Related Threads…
Thread Author Replies Views Last Post
  HTTP Compression Test .M. 0 618 2021-Jun-10-8:38 pm
Last Post: .M.
  Forbidden You don't have permission to access on this server wamp CanadaCommunity 0 1,352 2018-Jun-23-10:47 pm
Last Post: CanadaCommunity
  WAMP is Running Very Slow Technoman 0 1,469 2017-Aug-16-7:06 pm
Last Post: Technoman
  wamp server fast Technoman 0 1,383 2017-Aug-16-7:04 pm
Last Post: Technoman

Users browsing this thread: 1 Guest(s)