SSL certificates – how to convert to different formats

The most common SSL certificates are defined by X.509. The digital certificates have different formats. Here’s a brief overview of several common formats of SSL certificates:

PEM: private key or certificate

CER: only certificate

DER: only certificate

CRT: only certificate

PFX: private key and certificate

P12: private key and certificate

JKS: private key and certificate

KEY: public key or private key

  1. Convert certificate and private key in PEM format to PFX format.

Openssl pkcs12 -export -out certificate.pfx -inkey privkey.pem -in cert.pem

2. Convert certificate in CRT, DER or CER format to PEM format.

openssl x509 -in cert.crt -out cert.pem -outform PEM

3. Convert private key in KEY format to PEM format.

openssl rsa -in private.key -out private.pem -outform PEM

1 myśl na “SSL certificates – how to convert to different formats

Dodaj komentarz

Twój adres e-mail nie zostanie opublikowany.