Tech Tip: What to do if you get SSL Certificate in P12 format?
PRODUCT: 4D | VERSION: 16 | PLATFORM: Mac & Win
Published On: October 5, 2017
4D uses PEM formatted SSL Certificates and SSL Keys.
4D does not support certificates or keys in P12 format.
If you recieve a Certificate and Key in P12 format, it must be converted to PEM format in order to be used by 4D.
Here are the openssl commands that can be used for converting a P12 formatted certificate to PEM format:
openssl pkcs12 -in cert.p12 -nocerts -out encrypted_key.pem openssl pkcs12 -in cert.p12 -clcerts -nokeys -out cert.pem openssl rsa -in encrypted_key.pem -out key.pem |
The 3 lines above will convert a P12 formatted certificate named cert.p12 into 3 PEM files:
- encrypted_key.pem
- cert.pem
- key.pem
Even though this process creates 3 files, you only use the cert.pem and key.pem with 4D and do not actually use the encrypted_key.pem with 4D.