Is there a way by which I can know the encoding type of a certicate file?
cer, so the only way to tell if the certificate is PEM or DER is to open the certificate in a text editor and look for the BEGIN CERTIFICATE and END CERTIFICATE sections (if they are there then the . cer is in PEM format).
Base64 is the industry standard format for SSL certificate content. The most common web servers will generate a certificate signing requests as well as accept SSL certificates in base-64 format. The size of the certificate content will depend on the encryption strength of the certificate.
A DER file is an X. 509 digital certificate encoded in binary – 1's and 0's. Base64 is a binary-to-text encoding scheme, so a PEM file, which is a Base64 encoded DER file, is that same X. 509 certificate, but encoded in text, which (remember!) is represented as ASCII.
If you open the certificate up in notepad and it starts with -----BEGIN CERTIFICATE----- then it's Base64 encoded. if it's all goobledygook it's DER encoded.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With