PFX to CRT on Apache Server
Move your PFX file to the Apache server. To convert the .pfx file to a file that your Apache server will understand
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 (is your new exported your Entrust SSL certificate)
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
No comments:
Post a Comment