OpenSSL Convert .p7b to .pem to .crt: Difference between revisions

From UNIX Systems Administration
Jump to navigation Jump to search
Line 3: Line 3:
## <tt>'''# openssl pkcs7 -inform der -in <certificate>.p7b -outform pem -out <certificate>.pem'''</tt>
## <tt>'''# openssl pkcs7 -inform der -in <certificate>.p7b -outform pem -out <certificate>.pem'''</tt>


== Convert .pem to .crt ==
== Convert .pem with PEM encoding to .crt ==
# Conversion from .pem with no encoding to .crt.
# Conversion from .pem with no encoding to .crt.
## <tt>'''# openssl pkcs7 -print_certs -in <certificate>.pem -out <certificate>.crt'''</tt>
## <tt>'''# openssl pkcs7 -print_certs -in <certificate>.pem -out <certificate>.crt'''</tt>

Revision as of 15:27, 8 January 2016

Convert .p7b with DER encording to .pem with PEM encoding

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

Convert .pem with PEM encoding to .crt

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

Further Reading

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