howtos:convert_between_der_and_pem
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | howtos:convert_between_der_and_pem [02/12/2018 21:34] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | To convert a certificate from PEM to DER: | ||
+ | < | ||
+ | openssl x509 -in input.crt -inform PEM -out output.crt -outform DER | ||
+ | </ | ||
+ | To convert a certificate from DER to PEM: | ||
+ | < | ||
+ | openssl x509 -in input.crt -inform DER -out output.crt -outform PEM | ||
+ | </ | ||
+ | |||
+ | To convert a key from PEM to DER: | ||
+ | < | ||
+ | openssl rsa -in input.key -inform PEM -out output.key -outform DER | ||
+ | </ | ||
+ | |||
+ | To convert a key from DER to PEM: | ||
+ | < | ||
+ | openssl rsa -in input.key -inform DER -out output.key -outform PEM | ||
+ | </ |
howtos/convert_between_der_and_pem.txt · Last modified: 02/12/2018 21:34 by 127.0.0.1