To convert a certificate from PEM to DER:
Code: Select all
# openssl x509 -in input.crt -inform PEM –out output.crt -outform DER
Code: Select all
# openssl x509 -in input.crt -inform DER -out output.crt -outform PEM
Code: Select all
# openssl rsa -in input.key -inform PEM -out output.key -outform DER
Code: Select all
# openssl rsa -in input.key -inform DER -out output.key -outform PEM