Converting a certificate from the DER encoding to the PEM encoding

26 April 2024

ID 239055

After processing the Certificate Signing Request, the certification authority may issue a signed certificate in the X.509 format (file with the CER or CRT extension).

The X.509 certificate file can be provided in two encodings:

  • DER encoded
  • Base64 encoded (PEM encoding)

If the certificate is provided in the DER encoding, you must convert it to the PEM encoding. You can use the openssl utility to convert the certificate.

To convert a certificate from the DER encoding to the PEM encoding, use the following command:

openssl x509 -in source.cer -inform DER -out cert.pem

You can use the obtained cert.pem file to replace the web interface certificate.

Did you find this article helpful?
What can we do better?
Thank you for your feedback! You're helping us improve.
Thank you for your feedback! You're helping us improve.