OpenSSL Convert .p7b to .pem to .crt: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
(8 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
== Convert .p7b to .pem == | == Convert .p7b with DER encording to .pem with PEM (PKCS7) encoding == | ||
# Conversion from .p7b with DER encoding to | # Conversion from .p7b with DER encoding to PEM encoding | ||
## <tt>'''# openssl pkcs7 -inform der -in <certificate>.p7b -out <certificate>.pem'''</tt> | ## <tt>'''# openssl pkcs7 -inform der -in <certificate>.p7b -outform pem -out <certificate>.pem'''</tt> | ||
# Verify the encoding, the following is viewable in the file -----BEGIN PKCS7----- to -----END PKCS7----- | |||
== Convert | == Convert from PKCS7 PEM-formatted to x509 PEM-formatted == | ||
# | # Convert from PKCS7 PEM-formatted to x509 PEM-formatted. | ||
## <tt>'''#openssl pkcs7 -print_certs -in | ## <tt>'''# openssl pkcs7 -print_certs -in <certificate-pem>.p7b -out <certificate-x509>.crt'''</tt> | ||
== Further Reading == | == Further Reading == |
Latest revision as of 20:19, 8 January 2016
Convert .p7b with DER encording to .pem with PEM (PKCS7) encoding
- Conversion from .p7b with DER encoding to PEM encoding
- # openssl pkcs7 -inform der -in <certificate>.p7b -outform pem -out <certificate>.pem
- Verify the encoding, the following is viewable in the file -----BEGIN PKCS7----- to -----END PKCS7-----
Convert from PKCS7 PEM-formatted to x509 PEM-formatted
- Convert from PKCS7 PEM-formatted to x509 PEM-formatted.
- # openssl pkcs7 -print_certs -in <certificate-pem>.p7b -out <certificate-x509>.crt