OpenSSL + Apache 2.2 on a windows 2003 server box

Openssl on a windows boxOk I felt it was cool to pass along what I've found with trying to run OpenSSL on Apache 2.2 on a windows 2003 server hosted by Godaddy on a Virtual dedicated server. This article assumes you already have OpenSSL up and running on your server, if not Start here » http://www.slproweb.com/products/Win32OpenSSL.html

First download the Apache with OpenSSL (mod_ssl.so) included here - http://www.apachelounge.com/download/

After Apache install...

Open up a command prompt and go to the \Apache2\bin (there you will find openssl.exe)

Example uses - www.buycycletrader.com

first command to run generates the key - openssl genrsa -out www.buycycletrader.com.key 1024

second command generates the CSR request - openssl req -new -nodes -key www.buycycletrader.com.key -out www.buycycletrader.com.csr

Now get your certificate from like a GoDaddy and place the key file with it along with any bundle packages .crt file if needed.

Last step - edit the \Apache2\conf\extra\ httpd-ssl.conf file to your SSL doc locations

* SSLCertificateFile /path/to/your/certificate/file
* SSLCertificateKeyFile /path/to/your/key/file
* SSLCertificateChainFile /path/to/intermediate/bundle/file (if nessary un-comment)

Close and save!

Go to your \Apache2\conf\ httpd.conf and un-comment the line;

LoadModule ssl_module modules/mod_ssl.so

AND...
at the very bottom un-comment the line so it looks like below;

# Secure (SSL/TLS) connections
Include conf/extra/httpd-ssl.conf

Save your file and restart your server and test!

Wha-La! SSL - Now keep inmind that you can't use multiple domains on one IP for SSL, each domain need it's own IP if you are to have multiple SSL websites on the same server.