OpenSSL Convert .p7b to .pem to .crt: Difference between revisions
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
== Convert .p7b with DER encording to .pem with PEM encoding == | == Convert .p7b with DER encording to .pem with PEM (PKCS7) encoding == | ||
# Conversion from .p7b with DER encoding to PEM encoding | # Conversion from .p7b with DER encoding to PEM encoding | ||
# Verify the encoding, the following is viewable in the file -----BEGIN PKCS7----- to -----END PKCS7----- | |||
## <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> | ||
Revision as of 15:29, 8 January 2016
Convert .p7b with DER encording to .pem with PEM (PKCS7) encoding
- Conversion from .p7b with DER encoding to PEM encoding
- Verify the encoding, the following is viewable in the file -----BEGIN PKCS7----- to -----END PKCS7-----
- # openssl pkcs7 -inform der -in <certificate>.p7b -outform pem -out <certificate>.pem
Convert .pem with PEM encoding to .crt
- Conversion from .pem with no encoding to .crt.
- # openssl pkcs7 -print_certs -in <certificate>.pem -out <certificate>.crt