OpenSSL - Convert a .p12 file to a .pem file

by
Jeremy Canfield |
Updated: February 24 2022
| OpenSSL articles
This assumes you have already created a PKCS12 public certificate with the .crt extension, such as example.com.crt. If not, refer to our article on creating a public certificate using OpenSSL on Linux.
Then OpenSSL command with the pkcs12 option can be used to convert a .p12 file to a .pem file.
openssl pkcs12 -in keystore.p12 -out example.com.pem
Did you find this article helpful?
If so, consider buying me a coffee over at