Run the following command using OPENSSL:
1. To export the Private key file from the .pfx file
openssl pkcs12 -in filename.p12 -nocerts -out privatekey.key
2. To export the Certificate file from the .pfx file
openssl pkcs12 -in filename.p12 -clcerts -nokeys -out sslcert.crt
filename.p12 (is your existing IIS PFX file)
privatekey.key (is your new exported private key file)
ssl.crt
3. You now need to copy the files to the locations as described in the httpd.conf
4. To find out where the files should be copied to run this on the httpd.conf
cat httpd.conf | grep SSLCertificateFile (this will give you the location of where to copy the certificate file)
cat httpd.conf | grep SSLCertificateKeyFile (this will give you the location of where to copy the key file)
5. You will now need to restart apache
Recent Comments