opyeb asn1lab

asn1lab · Guides

ASN.1 and certificate decoding guides

Five guides: DER/BER/PEM basics, X.509, PKCS#8 and SPKI, ECDSA DER signatures, OID reference

DER, BER and PEM encoding, X.509 layout, key formats, ECDSA signatures and OID reference: the points where real work gets stuck.

Basics

BasicsDER, BER and PEM: encoding rules and the envelopeHow tag, length and value become bytes, and where BER and DER part ways.CertificatesReading the structure of an X.509 certificateFollows the field order inside the certificate SEQUENCE and the extensions as real tags.

Certificates

KeysPKCS#8, SPKI and PKCS#1: three shapes of key fileWhich envelope a private or public key sits in, judged from the first tag.SignaturesECDSA DER signatures and fixed-width r‖sReads r and s from a DER signature and builds the curve-width r‖s that APIs expect.

Keys and signatures

ReferenceOIDs and tag numbers, decodedThe rules for reading dotted OIDs and the values you meet in certificates.

Ready to look at your own bytes? Open the decoder.

Open the tool