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.
Thank you for the good writes up.
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
Just a correction of my e-mail address
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?
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
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.
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
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.
Hi,
Thank you very much!!! This is working fine for me. Your
at step 35 can the server name be left as localhost??
saphira, the answer is yes but then when you run it, you might not know which one you’re actually running on
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
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 🙂
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.
Aloysius, you can NOT run two servers in one machine, so that’s why you keeps getting errors
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.
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!
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.
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?
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?
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
Great tutorial but 53 steps…? No way.
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 😉
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.
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”
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
Mustafa Elbehery, check your httpd-ssl.conf and make sure there is no typo
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
Thank you very much very good supply
although there are some minor errors in the httpd-ssl.conf
corrergidos once these works great
thanks
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.