-
1. Re: SSL using PFX file in Apache
pjhavariotis Dec 6, 2016 5:51 AM (in response to sreekanth.munarai)For your info, pfx is equivalent to pkcs12.
All you have to do is to generate a .key file and a .crt file from a .p12 file, with the help of openssl (https://www.openssl.org/docs/man1.0.2/apps/pkcs12.html)
To help you, you can try the following commands:
openssl pkcs12 -in <pfx_cert>.pfx -nocerts -out <SSLCertificateKeyFile>.key
openssl pkcs12 -in <pfx_cert>.pfx -clcerts -nokeys -out <SSLCertificateFile>.crt
-
2. Re: SSL using PFX file in Apache
sreekanth.munarai Dec 7, 2016 3:02 AM (in response to pjhavariotis)Hi Panagiotis,
Thanks for the suggestions. Have followed the same and everything as expected.
The above command to create .key file generates encrypted key file which may trouble in process. To avoid the same we need to generate decrypted code by below command:
openssl rsa -in [.key] -out [decrypted.key]
Place the above file at old Key file and rest works as expected.Cheers!!