How to Export a CER Certificate to a PEM Format Certificate File?

Execute command:

openssl x509 -in fh2-private.cer -inform der -outform pem -out fh2-private.pem

Parameter explanation:

  • fh2-private.cer: the certificate
  • fh2-private.pem: the corresponding generated "pem" certificate file