Configure HTTPS using SSL certificate on WAMP local server

https ssl certificate web secuirty

In this blog you will learn step by step how to configure HTTPS using SSL certificate on WAMP local server at any of your project.

Here you will also learn how to serve your local websites with domains names like project1.com project2.com or for detailed virtual-host configuration go to my another blog create-virtual-hosts-apache-wamp-xamp

lets start HTTPS SSL configuration.


  1. Requirements for SSL configuration

    You should have below 2 certificate files

    1. Certificate.cer or certificate.crt
    2. private.key

    If you already have certificate files then skip steps [2,3,4] and just to step#5 .

  2. Install openSSL

    Install open SSL from Here

  3. Generate Private key

    Open terminal as an Administrator and goto openssl installation path by typing below commad

    then enter below command and enter a password 2 times and then enter below command and enter same password you entered in previous step.
  4. Create SSL Certificate

    Enter below command and enter real or dummy company information

    You have to provide below information

  5. Move SSL Certificate files

    copy both certificate files to D:\wamp64\bin\apache\apache2.4.46\conf

  6. Changes in httpd.conf

    open httpd.conf file from D:\wamp64\bin\apache\apache2.4.46\conf\httpd.conf and uncomment below lines

  7. Changes in httpd-ssl.conf

    Open httpd-ssl.conf file from D:\wamp64\bin\apache\apache2.4.46\conf\extra\httpd-ssl.conf and update the following linkes as per path where you have pasted 2 certificate files.

  8. Make a virtual host

  9. Changes in Host file

    Open notepad with Run as Administrator and open host file from C:\WINDOWS\System32\drivers\etc
    add below line, note domain name must be same as you mentioned in vhosts file

  10. Restart WAMP Server

  11. Test websites

    try opening your website in browser with https protocol eg

  12. Errors Handling

    If there is any error you can find it by any of below methods

    1. In CMD goto D:\wamp64\bin\apache\apache2.4.46\bin and run httpd -t
    2. Check log files
    3. I faced an issue that was because of forward-slash instead of back-slah as path separator. So use (/ instead of \) in certificate paths in vhost file
    4. Google or commenting your error in this blog


    Write a Reply or Comment

    Your email address will not be published. Required fields are marked *