Certificate conversion from .CER to .PEM

If you need to get PEM (Base64 text) format from DER (binary) format Certificate, then this might fix the situation:

  1. Open Powershell as admin and execute command:

certutil -encode “C:\path\to\cert.cer” “C:\path\to\cert.pem”

Note:
“C:\path\to\cert.cer” – the location of .cer file you have
“C:\path\to\cert.pem” – the output location for text based format

  1. Open converted .pem file with Notepad or Notepad++ and you will get ouput in text format

example:
—–BEGIN CERTIFICATE—–
KLS1t…
—–END CERTIFICATE—–

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *