Heim MicrosoftWindows Server Move SSL from IIS to Apache

Move SSL from IIS to Apache

eftir Jón Ólafsson

These are the steps I took to get SSL working on an Apache server running on Windows Server 2008R2…

First log on to one other server running Server2008R2 and there I exported my IIS certificate into a .pfx file

  • Start > Run > mmc.exe
  • Click the ‘Console’ menu and then click ‘Add/Remove Snap-in’.
  • Click the ‘Add’ button and then choose the ‘certificates’ snap-in and click on ‘Add’.
  • Select ‘Computer Account’ then click ‘Next’.
  • Select ‘Local Computer’ and then click ‘OK’.
  • Click ‘Close’ and then click ‘OK’.
  • Expand the menu for ‘Certificates’ and click on the ‘Personal’ folder.
  • Right click on the certificate that you want to export and select ‘All tasks’ -> ‘Export’.
  • A wizard will appear. Make sure you check the box to include the private key and continue through with this wizard until you have a filename.PFX file.

And then on the Server running Server2008R2 and Apache webserver
Open openssl.exe which is usually Apache2 is under  “C:\Program Files\Apache Group\Apache2”

  • pkcs12 -in filename.pfx -nocerts -out key.pem
  • pkcs12 -in filename.pfx -clcerts -nokeys -out cert.pem
  • rsa -in key.pem -out server.key

Then open these files with Notepad and saved them as here below

  • key.pem > server.key
  • cert.pem > cert.cert

Edit conf/ssl.conf

  • SSLCertificateFile certs/cert.cert
  • SSLCertificateKeyFile certs/server.key
  • SSLCertificateChainFile certs/gd_bundle.crt          got this from Go Daddy

Save ssl.conf and reboot apache

Hvað finnst þér?

Þú hefur kannski áhuga á þessu...

Skildu eftir athugasemd

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Þessi vefur notast við vafrakökur. Samþykkja Lesa meira