Convert X.509 .cer to .pem using OpenSSL

black and red laptop computer

X.509 is a standard format for public key certificates, digital documents that securely associate cryptographic key pairs with identities such as websites, individuals, or organizations. However, this can also be converted to .pem files using OpenSSL.

  1. Save the X.509 format .cer file somewhere on your computer
  2. Open terminal and type the following command
    $ openssl x509 -in certificate.cer -outform PEM -out certificate.pem
  3. Enter the password if prompted
  4. If successful, you should now have .pem files that can be used on your Linux servers.

Add new comment

Plain text

  • No HTML tags allowed.
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.