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

Tags:  openssl

Share: