OpenSSL Convert .p7b to .pem to .crt: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 5: | Line 5: | ||
== Convert .pem to .crt == | == Convert .pem to .crt == | ||
# Conversion from .pem with no encoding to .crt. | # Conversion from .pem with no encoding to .crt. | ||
## <tt>'''#openssl pkcs7 -print_certs -in srvcctrain01.pem -out srvcctrain01.crt'''</tt> | ## <tt>'''# openssl pkcs7 -print_certs -in srvcctrain01.pem -out srvcctrain01.crt'''</tt> | ||
== Further Reading == | == Further Reading == |
Revision as of 17:46, 4 November 2015
Convert .p7b to .pem
- Conversion from .p7b with DER encoding to .pem.
- # openssl pkcs7 -inform der -in <certificate>.p7b -out <certificate>.pem
Convert .pem to .crt
- Conversion from .pem with no encoding to .crt.
- # openssl pkcs7 -print_certs -in srvcctrain01.pem -out srvcctrain01.crt