![DALL-E developer in his desk with macos terminal decoding certificate files](/sites/default/files/styles/large/public/2023-05/DALL%C2%B7E%202023-05-13%2007.38.58%20-%20developer%20in%20his%20desk%20with%20macos%20terminal%20decoding%20certificate%20files.png?itok=zCotTTMt)
A DER-encoded certificate can be transformed into an ASCII (Base64) encoded certificate using OpenSSL. A DER-encoded certificate cannot be read as plain text (unlike a PEM-encoded certificate). DER-encoded certificates typically have the file extensions.DER,.CRT, or.CER.
In the event that a PEM-encoded certificate also has the.CRT or.CER file extension, you can simply copy the file to a new name using the.PEM extension:
$ cp hostname.cer and hostname.pem
Use OpenSSL to convert a DER-encoded certificate to PEM:
$ openssl x509 -inform der -in hostname.cer -out hostname.pem
Add new comment