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.

  1. PEM Wraps DER

    the text file around the bytes of a certificate

  2. Tag, Length, Value Nest

    the one rule that every field of a certificate follows

  3. A Certificate Has Three Parts

    the signed part, the algorithm and the signature

  4. 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.

  1. Validity Is Two Times

    two times, two encodings and an inclusive period

  2. The SAN Names the Host

    which host names a certificate is for

  3. Key Usage and the CA Flag

    what a certificate's key is allowed to do

  4. The Signature Covers the First Part

    exactly which bytes a certificate signature protects