JLBN – Setup HTTPS SSL on WAMP

Hypertext Transfer Protocol over Secure Socket Layer or HTTPS is a URI scheme used to indicate a secure HTTP connection. It is syntactically identical to the http:// scheme normally used for accessing resources using HTTP. Using an https: URL indicates that HTTP is to be used, but with a different default TCP port (443) and an additional encryption/authentication layer between the HTTP and TCP. This system was designed by Netscape Communications Corporation to provide authentication and encrypted communication and is widely used on the World Wide Web for security-sensitive communication such as payment transactions and corporate information systems.

In this tutor guide for WAMP, we will show you how to create a self-signed HTTPS SSL certificate; then, how to implement this self-signed certificate into WAMP; then, obtain a FREE Trusted HTTPS SSL Certificate to replace the self-signed one.

[Read more…]

309 thoughts on “JLBN – Setup HTTPS SSL on WAMP

  • January 13, 2014 at 12:54 pm
    Permalink

    I just realized what the problem is.
    I had a newer ssleay32.dll in Windows/System32
    So I used this one instead of the one I copied over from WAMP.
    I rebooted and this activated IIS.
    So WAMP was not able to get online !!!.

    So I stopped IIS, restarted WAMP
    enabled php_openssl and
    tested
    https://localhost/index.html
    (added security exception) and
    https://my_IP_address/index.html
    (added security exception)
    Message says:
    “test SSL successful”
    Many thanks

  • January 13, 2014 at 12:38 pm
    Permalink

    Hello –
    I have a fresh installed WAMP server on Windows7.(Apache 2.4.4)
    I followed the super step by step explanation – and got the same error as described ealier (Dec2012)
    When trying to activate php extension openssl this does not work.
    Error description:
    Aestan Tray Menu
    “Could not execute menu item (internal error) [Exception] Could not perform service action: The service has not been started”

    After restarting the Wamp Server, the Tray Icon stays orange– not green.

    I can not go back and remove apache ssl Module via the menu, nor can I go offline.
    I do get the same error
    I switched off apache SSL modul in the httpd.confon file. Still I do get the same behavior – orange tray Icon, can not activate any apache modules , php extensions, nor make wamp offline.
    the error message is as described above.

    Any idea?
    By the way – the procedure does not enable to listen to port 443 – isn’t this neccessary?

  • December 6, 2013 at 6:46 am
    Permalink

    Thank you so much!!!
    it is the best step by step guide for this activity. there were so many errors in other guides.
    Again… thank you

  • November 2, 2013 at 4:32 pm
    Permalink

    Hi from Spain. First sorry for my english.
    I had the same problem. The wamp server didn’t work after following all the steps. Then I execute ‘httpd -t’ from prompt ‘c:\wamp\bin\apache\apache2.x.x\bin’ This check the sintax. I saw the problem, the module for shmcb wasn’t load.

    Then removing the # symbol in line ‘LoadModule socache_shmcb_module modules/mod_socache_shmcb.so’ -> httpd.conf, the wamp server started correctly.

    Thanks for this great tutorial.

    • July 1, 2014 at 8:58 pm
      Permalink

      Thanks a lot for your reply. actually your reply taught how to debug webserver restart issues rather solving each problem bu googling.

      httpd – t : i dont know this before.

      thanks a lot. I have got few errors even after following all the steps as above. but with httpd -t i am able to resolve any issue as i know whats the problem is rather getting lost in forums.

      Cheers mate
      Naga

  • October 16, 2013 at 11:31 pm
    Permalink

    Have you ever considered writing an e-book or guest authoring on other sites?
    I have a blog based upon on the same ideas you discuss and would love
    to have yyou share some stories/information. I know my viewers would appreciate your work.
    If you’re even remotely interested, feel
    free to shoot me an email.

    • March 14, 2013 at 5:55 pm
      Permalink

      saphira, the answer is yes but then when you run it, you might not know which one you’re actually running on

  • March 10, 2013 at 2:31 pm
    Permalink

    Sir in the first issue i made a mistake in my explanation here is the error message i get

    Warning: Creating default object from empty value in C:\wamp\www\agriculture\wordpress\wp-includes\user.php on line 657
    Call Stack

    • March 14, 2013 at 5:54 pm
      Permalink

      Aloysius, it’s hard to troubleshoot if we can’t see that script so point us to the location or link that we can download that script and we will test it out for you 🙂

  • March 10, 2013 at 2:14 pm
    Permalink

    Sir I have 2 issues one is that i don’t know what i did and got this error message in this version of Wampserver2.e-php5.4.3-ht… please sir help and guide me to correct it.

    Secondly i have this other version of wampserver2-APACHE2213 each time i want to install it, the error message i gets is that the file is corrupted i should obtain another one OK.

    • March 14, 2013 at 5:52 pm
      Permalink

      Aloysius, you can NOT run two servers in one machine, so that’s why you keeps getting errors

  • March 10, 2013 at 2:07 pm
    Permalink

    Sir I have 2 issues one is that i don’t know what i did and got this error message in this version of Wamp server2.e-php5.4.3-ht… please sir help and guide me to correct it.

  • March 3, 2013 at 9:12 pm
    Permalink

    This is the first tutorial that was not completely riddled with errors, and I’ve been doing some digging for this. However, there is one point, that you have you to make sure to put your webserver online, otherwise the page will not be found.

    Other than that, after 2 other tutorials failed, this is the one that was finally successful. Thanks a bunch for the really easy step-by-step instructions!

  • December 8, 2012 at 3:03 pm
    Permalink

    I follow all the steps. But when i reached the steps where it says click on Apache Modules to enable the ssl_module. I follow it and on the next step it says to enale php_openssl. It propt me with the message.

    “Could not execute menu item (internal error) [Exception] Could not perform service action: The service has not been started”

    And also i am seeing the orange tray color.

    I tried it several times but no conclusion.

    • January 13, 2014 at 11:05 am
      Permalink

      Hello –
      I have a fresh installed WAMP server on Windows7.
      I followed the super step by step explanation – and got the same error as described in this comment
      trying to activate php extension openssl does not work. The Wamp Server Tray Icon stays orange – not green.
      I can not go back and remove apache ssl Module. I do get the same error than
      Could not execute menu item (internal error) [Exception] Could not perform service action: The service has not been started”

      Any idea?

  • November 27, 2012 at 1:18 pm
    Permalink

    I am running a wampserver on my laptop. I do not have a domain name. I am able to successfuly do the steps you mentioned for https://localhost meaning that I get the red font success message. However, I also tried the same steps by putting my IP_address in place of JLBN. But if i try https://IP_address, it says connection refused.
    Any idea?

    • November 27, 2012 at 6:13 pm
      Permalink

      mith, post the content of your openssl.cnf and hosts files here. Make sure it’s in right code format or use this link to convert your codes:

      Code conversion

    • September 18, 2012 at 6:39 pm
      Permalink

      And people still have hard time and run into issue 🙁 Not sure how we can create a lot more steps to make it more clear to help people out 😉

  • September 9, 2012 at 3:15 pm
    Permalink

    Unfortunately after following all the steps (I did these steps before for wamp 2.0 successfully) as soon as you unhash the Include conf/extra/httpd-ssl.conf, apache will not start it’s service. After goin into httpd-ssl.conf, cutting everything out from the page and re-entering everything block by block while restarting wamp at every step, I figured it was not a typo on my behalf because apache is unable to restart on this line: SSLPassPhraseDialog builtin and every line there after all the while commenting and un-commenting each line and attempting to start apache service.

    Windows 7 64bit and 32bit.

    • September 9, 2012 at 4:20 pm
      Permalink

      I’m posting the blocks of code I commented out that makes apache start. (The funny part is httpd-ssl.conf is identical to my old httpd-ssl.conf from wamp 2.0 on windows 7 of my broken laptop.)

      #########SSLPassPhraseDialog builtin

      #########SSLSessionCache “shmcb:C:/wamp/bin/apache/Apache2.2.22/conf/ssl/logs/ssl_scache(512000)”
      ###########SSLSessionCacheTimeout 300

      #########SSLMutex default

      #########SSLEngine on

      #########SSLProtocol all -SSLv2

      ##########SSLCipherSuite HIGH:MEDIUM:!aNULL:!MD5

      #########SSLCertificateFile “C:/wamp/bin/apache/apache2.2.22/conf/ssl/TEEWEEZY.crt”

      #########SSLCertificateKeyFile “C:/wamp/bin/apache/apache2.2.22/conf/ssl/TEEWEEZY.key”

      #########SSLOptions +StdEnvVars

      #########SSLOptions +StdEnvVars
      Options Indexes FollowSymLinks MultiViews
      AllowOverride All
      Order allow,deny
      allow from all

      #########CustomLog “C:/wamp/logs/ssl_request.log” \ “%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \”%r\” %b”

  • September 5, 2012 at 7:20 pm
    Permalink

    Thanks 4 the great tutorial .. Unfortunately after all these steps, the apache is not working and its offline .. I tried to start it many times even from WINDOS SERVICES, it never works or even respond with a message … the orange tray color is always there !!! .. ANY SUGGESTIONS ??!!1

    • September 7, 2012 at 5:42 pm
      Permalink

      Mustafa Elbehery, check your httpd-ssl.conf and make sure there is no typo

    • September 25, 2012 at 3:00 pm
      Permalink

      I arrived at the same conclusion. Absolutely NO typos but apache would still not fire up.

      For me simply going into C:\wamp\bin\apache\apache2.2.14\conf\http.conf

      and finding the line:

      #LoadModule ssl_module modules/mod_ssl.so

      Then removing the # symbol. save then restart worked for me.

      Cheers

  • September 5, 2012 at 9:11 am
    Permalink

    Thank you very much very good supply

    although there are some minor errors in the httpd-ssl.conf
    corrergidos once these works great

    thanks

  • July 30, 2012 at 4:04 pm
    Permalink

    Some important notes that may save some souls:

    1) Avast antivirus might popup some messages when installing WAMP, so make sure you don’t block yourself by accident.

    2) Skype is using port 80 and 443 by default. This may cause some serious problems during the configuration! You may also configure Skype to not use those ports (Skype Tools -> Options -> Advanced -> Connection).

    3) If you already have MySQL running on your machine for some reason, note that you’re about to install yet another MySQL instance together with your WAMP. Make sure you know which port is used for which MySQL. In particular, you’ll probably want to configure WAMP’s MySQL to be using port 3307. This is done in several places in my.ini and php.ini.

    4) Some other applications/servers may also interfere with your https://, e.g. VisualSVN Server is already working in https://localhost. I’d suggest you go to https://localhost in your browser even prior to this WAMP configuration and see if you have anything there… 🙂

    Good luck! Trade responsibly.

Leave a Reply