How to Convert .CER to .P12

CER and P12 are both types of digital security certificates created with the OpenSSL program. P12 is a type of encryption within the more well-known PFX family (it shares the extension). To convert a CER certificate to a P12, simply run one command in OpenSSL. The security data will be the same, retaining your access key embedded within the file itself.

Computer Keyboard
A computer keyboard
credit: Devonyu/iStock/Getty Images

Step

Open OpenSSL.

Step

Copy and paste the following into the command window: openssl pkcs12 -export -out OUTPUTNAME.pfx -inkey KEY.key -in FILENAME.cer -certfile CACert.crt

Step

Replace “OUTPUTNAME” with the desired name of your P12 PFX file.

Step

Replace KEY with the access key of the CER (which will be transferred to the P12).

Step

Replace “FILENAME” with the name of the existing CER file.

Step

Hit Enter. This will perform the conversion, saving the P12 in the same folder as the CER.