SSL Certificate Help - Windows

SSL Certificate Help - Windows

To facilitate the installation of an SSL Certificate on a Windows system, the following changes should be added to the file C:\Program Files\Noguska\NolaPro\Apache\conf\httpd.conf.

Go to the very bottom of the page.
-----------------------------------------------------------------
Listen 50080
Listen 443
#Listen 80

NameVirtualHost *:443
#NameVirtualHost *:80

#<VirtualHost *:80>
# ServerName localhost
# SSLEngine off
# Redirect / https://localhost
#</VirtualHost>

<VirtualHost *:443>
ServerName localhost
DocumentRoot "C:/Program Files/Noguska/NolaPro/Apache/htdocs"
SSLEngine on
SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
SSLCertificateFile "C:\Program Files\Noguska\NolaPro\Apache\conf\ssl.crt\nolapro.crt"
SSLCertificateKeyFile "C:\Program Files\Noguska\NolaPro\Apache\conf\ssl.key\nolapro.key"
SSLCertificateChainFile "C:\Program Files\Noguska\NolaPro\Apache\conf\ssl.crt\ca.crt"
<Files ~ "\.(cgi|shtml|phtml|php3?)$">
SSLOptions +StdEnvVars
</Files>
SetEnvIf User-Agent ".*MSIE.*" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
</VirtualHost>
----------------------------------------------------------------

To bring up your site without typing the :50080 at the end then uncomment Listen 80, Name VirtualHost *:80 and the <VirtualHost *:80> section. This will automatically forward traffic to the SSL site.

Also in the <VirtualHost *:80> section change ServerName so that it has the domain you registered along with changing the Redirect line.

In the <VirtualHost *:443> section, put in your registered domain next to ServerName. Next copy your domainname.crt file and .crt file from your Certificate Authority (godaddy.com, for example) in the Apache\conf\ssl.crt folder.

You can rename the domain .crt file to nolapro.crt and the certificate authority file to ca.crt (and delete the old ones there), or you can change those references in the VirtualHost section.

Put your domainname.key file in the Apache\conf\ssl.key folder. This can be renamed it to nolapro.key, or kept the same file name, but you'll need to update the VirtualHost part where nolapro.key is referenced and change it to the same name of the file.

Restart apache and test it out by bringing up the registered domain name.