Friday, December 17, 2010

Moving SSL Certificates from IIS to Apache

1) Export the certificate from IIS. The easiest way to do this is from the MMC Certificates snap-in. Instructions for adding the certificates snap-in to MMC are available at technet.microsoft.com

2) Move the .pfx to your Apache web server.

3) Extract the SSL cert and key from the .pfx file:
# To export the private key from the pfx file:
openssl pkcs12 -in win_cert.pfx -nocerts -out key.pem

# To export the certificate from the pfx file:
openssl pkcs12 -in win_cert.pfx -clcerts -nokeys -out cert.pem

# To remove the password from the key:
openssl rsa -in key.pem -out key_with_no_pw.key


4) Install your certificate. Installing certificates is easy!

0 comments:

Post a Comment

 
Contact our honeypot department if you are desperate to get blacklisted.