To convert a .pem to .crt in terminal with OpenSSL client, you use either of the two following commands. This is because some crt files are binary (DER) encoded and others are base64 encoded like .pem:
openssl x509 -in mycert.crt -out mycert.pem -outform PEM
openssl x509 -inform DER -in yourdownloaded.crt -out outcert.pem -text
You can also learn how to convert other certificates.
Convert .Crt Certificates
Convert .Cer Certificates
Convert .jks Certificates
Convert .pem Certificates
Convert .der Certificates
Convert .p7b Certificates
Convert .p12 Certificates
See Also:
How to Setup Email on DigitalOcean
How to Add Sudo User in Ubuntu and Linux with Root Privileges
0 Comments