Plan for failures, hope for success!
Convert a PKCS#12 file (pfx) containing a private key and certificates to PEM
Need to add an existing SSL Cert to Apache or some Linux Based Appliance?
It’s easy, in a few simple steps…
Using OpenSSL, issue these commands:
1 |
openssl pkcs12 -in Certificate.pfx -out Certificate.pem -nodes |
This will output a PEM file that contains both the certificate and the private key
You can add -nocerts to only output the private key or add -nokeys to only output the certificates.
This is how i create the separate files for Jboss, Using -nocerts and -nokeys is how I create separate files for Jboss and Apache
Comments are closed.