SSL is supported in XAMPP and WAMPserver through the OpenSSL toolkit.
You can easily enable SSL by following the steps below.
For XAMPP:
1) Open the file “httpd.conf” in a text editor. The “httpd.conf” file is located in “C:\xampp\apache\conf”. (The path shows XAMPP is installed in “C:\”. If you have installed XAMPP in some other directory, you can go to “...path-to-xampp-directory...\xampp\apache\conf”.)
2) In the “httpd.conf” file, find the following line:
#LoadModule ssl_module modules/mod_ssl.so
Delete the “#” (hash symbol) from the line and save the file. If there is no “#” leave the file as it is.
3) Open the file “php.ini” located in “...\xampp\php” in a text editor. This is the the php configuration settings file.
Search for this line:
;extension=php_openssl.dll
Uncomment it by deleting the semicolon(;) at the beginning. Save the file.
4) Restart Apache. Now you can use https from your browser. Your browser might warn you that the security certificate is not trusted. You can ignore this warning while in localhost.
For WAMPserver:
1) Open the file “C:\wamp\bin\apache\Apache2.4.4\conf\httpd.conf” in a text editor.
(In the path above, you might have a different Apache version in place of Apache2.4.4.)
Search for the line:
#LoadModule ssl_module modules/mod_ssl.so
Delete “#” from the beginning to uncomment the line. Save the file.
2) There are two “php.ini” (Configuration settings) files in Wamp.
One at “C:wamp\bin\apache\Apache2.4.4\bin\php.ini” and the other at “C:\wamp\bin\php\php5.4.16\php.ini”. (Your Wamp installation might have different versions of Apache and PHP in the paths.)
3) Open the files in a text editor. Find the line:
;extension=php_openssl.dll
Delete semicolon(;) from the beginning. Save the files.
4) Restart WAMPserver and Apache.
Note: There are some issues with WAMPserver 2.4 (It contains different OpenSSL files and the procedure above may not work.)