OpenSSL Convert .p7b to .pem to .crt

From UNIX Systems Administration
Jump to navigation Jump to search

Convert .p7b to .pem

  1. Conversion from .p7b with DER encoding to .pem.
    1. # openssl pkcs7 -inform der -in <certificate>.p7b -out <certificate>.pem

Convert .pem to .crt

  1. Conversion from .pem with no encoding to .crt.
    1. # openssl pkcs7 -print_certs -in srvcctrain01.pem -out srvcctrain01.crt

Further Reading

  1. OpenSSL: unable to load PKCS7 object
  2. SSL Converter