A Small Certificate Authority

How a certificate authority makes a chain and how a verifier checks it, on test certificates with 512-bit RSA keys: a root that signs itself, a request, the signing command, the extensions that say what a key may do, the walk from a leaf to a root, time, a link that is not allowed to sign, and what OK does not mean.

Make the Chain

A root, a request, the signing command and the extensions that say what a key may do.

  1. A Root Signs Itself

    why the first certificate of a chain is signed by its own key

  2. A Request Asks for a Signature

    what a CA is asked to sign

  3. The CA Signs the Request

    how a CA turns a request into a certificate

  4. Extensions Say What a Key May Do

    the CA flag and the path length in the bytes

Check the Chain

The walk from a leaf to a root, time, a link that may not sign, and what OK means.

  1. Verify Walks the Chain

    how a verifier finds the next certificate up

  2. Time Breaks a Chain

    why a chain stops working on one date

  3. A Missing Link Breaks a Chain

    when a certificate on the path is not allowed to sign

  4. What OK Means

    what a passing check does and does not say