Moving SSL Certificates from IIS to Apache
Posted by Joseph Quintero on 10 May 2013 12:27 PM
Export your IIS certificate into a .pfx file.
Next, run OpenSSL to extract the private key and the certificate file.
3. Launch the openssl application.
4. Export the private key file from the pfx file.
OpenSSL> pkcs12 -in filename.pfx -nocerts -out key.pem
5. Export the certificate file from the pfx file.
OpenSSL> pkcs12 -in filename.pfx -clcerts -nokeys -out cert.pem
6. This removes the passphrase from the private key, so Apache won't prompt you for your passphase when it starts.
OpenSSL> rsa -in key.pem -out server.key