Posted by:
hambuler
(---.cpe.net.cable.rogers.com)
You can follow my steps to create working https SSL:
****Step1****** -> Create SSL Certificate and Key
1a) Open the DOS command window and change directory to bin directory of wamp apache directory
for example, the DOS prompt should be C:\wamp\bin\apache\apache2.2.8\bin>
1b) Create a server key with 1024 bits encryption. You should enter this command without quotes:
"openssl genrsa -des3 -out server.key 1024". It'll ask you a pass phrase, just enter it.
1c) Remove the pass phrase from the RSA private key (while keeping a backup copy of the original file). Enter this command without quotes: "copy server.key server.key.org" and then "openssl rsa -in server.key.org -out server.key". It'll ask you the pass phrase, just type it.
1d) Create a self-signed Certificate (X509 structure) with the RSA key you just created. Enter the command without quotes: "openssl req -new -x509 -nodes -sha1 -days 365 -key server.key -out server.crt -config C:\wamp\bin\apache\apache2.2.8\bin\openssl.cnf".
You'll fill in the information after entering this command. The location of config file needs to be changed. In windows, you won't see ".cnf" extension of the file openssl, but in DOS you'll see the full name openssl.cnf.
***** Step2***** -> Copy the server.key and server.crt files.
2a) In the conf folder of apache2.2 folder, create two folders named as ssl.key and ssl.crt
2b) copy the server.key file to ssl.key folder and server.crt file to ssl.crt
****Step3****** -> Edit the httpd.conf file and php.ini
3a) In httpd.conf file, remove the comment '#' at the line which says: LoadModule ssl_module
modules/mod_ssl.so
3b) In httpd.conf, remove the comment '#' at the line which says: Include
conf/extra/httpd_ssl.conf
Then move that line after this block <IfModule ssl_module>.... </IfModule>
3c) open the php.ini file located in apache2.2....\bin folder, remove the comment ';' at the line
which says: extension=php_openssl.dll
****Step4***** -> Edit the httpd_ssl.conf file in extra folder
4a) Find the line which says "SSLMutex...." and change it to "SSLMutex default" without quotes
4b) Change the line which says "DocumentRoot ..." to DocumentRoot "C:/wamp/www/" with quotes. Change the line "ErrorLog...." to Errorlog logs/sslerror_log. Change the line "TransferLog ...." to TransferLog logs/sslaccess_log
4c) SSL crt file: Change the line "SSLCertificateFile ...." to SSLCertificateFile "conf/ssl.crt/server.crt"
4d) SSL key file: Change the line "SSLCertificateKeyFile ...." to SSLCertificateKeyFile "conf/ssl.key/server.key"
4e) Change the line <Directory "C:/Program Files/Apache Software Foundation/Apache2.2/cgi-bin"> to <Directory "C:/wamp/www/"> and add the following lines inside <Directory>...</Directory> tags:
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
****Step5***** -> Restart the Apache server
****Step6**** -> if restart is successful, then open the browser and enter [
localhost]