A Certificate, Field by Field
An X.509 certificate taken apart from its bytes: PEM wraps DER, DER is nested tag-length-value, a certificate has three parts, a name is a sequence of sets, validity is two times, the host name lives in the Subject Alternative Name, key usage is a bit string and the signature covers the first part. Every certificate is a test certificate with a 512-bit toy key.
Read the Bytes
PEM wraps DER, DER is nested tag-length-value, a certificate is three parts and a name is a sequence of sets.
- PEM Wraps DER
the text file around the bytes of a certificate
- Tag, Length, Value Nest
the one rule that every field of a certificate follows
- A Certificate Has Three Parts
the signed part, the algorithm and the signature
- Names Are Sequences of Sets
how the subject and the issuer are written in the bytes
Read the Fields
Validity, the names of hosts, key usage and the part of the certificate that is signed.
- Validity Is Two Times
two times, two encodings and an inclusive period
- The SAN Names the Host
which host names a certificate is for
- Key Usage and the CA Flag
what a certificate's key is allowed to do
- The Signature Covers the First Part
exactly which bytes a certificate signature protects