This procedure will help you to move or copy your SSL certificate, installed on an IIS server to an Apache server.
Export the private key file from the .PFX file.
$ openssl pkcs12 -in filename.pfx -nocerts -out key.pem
Export the certificate file from the .PFX file.
$ openssl pkcs12 -in filename.pfx -clcerts -nokeys -out cert.pem
This command 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
Make sure that the following lines are present in your apache virtual host configuration file and they are correct:
SSLEngine on SSLOptions +StrictRequire SSLCertificateFile /path/to/certificate/cert.pem SSLCertificateKeyFile /patch/to/key/server.key
Don’t forget to restart apache at the end.
Article Number: 495
Posted: Mon, Feb 18, 2019 4:45 PM
Last Updated: Mon, Feb 18, 2019 4:45 PM
Online URL: http://kb.ictbanking.net/article.php?id=495