Determining whether a certificate has been encoded or encoded in base 64

HI, Is there any way to find out the encoding type of the certificate file?

+4
source share
2 answers

If you open the certificate in notepad and start with ----- BEGIN CERTIFICATE -----, then it is encoded by Base64. if all of this triggered DER encoding.

+10
source

Informational, as it triggered a search. All X.509 certificates use the Distinguished Encoding Rules (DER) to a large extent as the default encoding standard for storing certificate data in Abstract Syntax Notation One (ASN.1). Base64 is a form of binary text encoding (usually in ASCII text). This makes it a "transmission" friendly.

Ref: http://www.herongyang.com/Cryptography/Certificate-Format-DER-Distinguished-Encoding-Rules.html

https://support.ssl.com/Knowledgebase/Article/View/19/0/der-vs-crt-vs-cer-vs-pem-certificates-and-how-to-convert-them

0
source

All Articles