Migrating SSL Cert from IIS to Apache - page 4

Author: Steven Neiland
Published:

Warning: This blog entry was written two or more years ago. Therefore, it may contain broken links, out-dated or misleading content, or information that is just plain wrong. Please read on with caution.

Step 4: Configure the SSL site

A SSL enabled site is seperate from the non ssl version. Even though they may have the same codebase they are seperate entities as far a as Apache is concerned. For this reason you will have to create a new vhost for the SSL site, where you replace the port 80 with 443.

The SSL site will have all the same settings as the non-ssl site with the following additions

#non ssl version of site
<VirtualHost mysite_ipaddress:80>
//configuration settings
</VirtualHost>

#ssl version of site
<VirtualHost mysite_ipaddress:443>
//configuration settings
SSLEngine on
SSLCertificateFile /path/to/mysite.crt
SSLCertificateKeyFile /path/to/mysite.key
SSLCertificateChainFile /path/to/DigiCertCA.crt
</VirtualHost>

Step 5: Test

At this stage your ssl cert should be installed correctly. To test restart apache then enter the address https://your_site_url into a web browser (note the s at the end of http). You should see your site as normal but with SSL enabled.

1 2 3 4

Reader Comments

NS's Gravatar
NS
Wednesday, November 7, 2012 at 3:40:12 AM Coordinated Universal Time

Thanks for this, had to put the IIS cert on the apache reverse proxy...followed your steps, perfect.
Thanks a lot.

Carlo Idini's Gravatar
Carlo Idini
Monday, February 3, 2014 at 11:53:26 AM Coordinated Universal Time

Thank you!
It has worked perfectly for me.
I was looking for a solution from hours,
very crear and useful!
Carlo

  • Please keep comments on-topic.
  • Please do not post unrelated questions or large chunks of code.
  • Please do not engage in flaming/abusive behaviour.
  • Comments that contain advertisments or appear to be created for the purpose of link building, will not be published.

Archives Blog Listing