Convert from DER to PEM (and back) with OpenSSL


Convert PEM to DER:

openssl x509 -in cert.pem -outform der -out cert.crt

Convert DER to PEM

openssl x509 -in cert.crt -inform der -outform pem -out cert.pem

Date: 2018-08-29

Tags:  openssl

Share: