Module 2 · Lesson 2.2

Certificates

A signed statement that binds a name to a public key.

  • 3-minute video
  • 7-minute read
  • Builds on lesson 2.1

A passport works because a government you trust vouches for the name and the photo in it. A certificate does the same job for a public key.

A signed statement

A certificate is a statement, signed by an issuer, that binds a public key to an identity. It says, in effect: “This public key belongs to this subject, for these uses, during this period.” The issuer signs the whole statement with its own private key.

The issuer signs the certificate body, including its public key, identity information and validity dates. Anyone who trusts the issuer, and has the issuer’s public key, can check that signature. As lesson 1.5 showed, editing the signed body breaks verification, so the binding can’t be changed after the fact.

A certificate, field by field, next to a passport On the left, a passport: issuing country, holder’s name, photo, valid until, and the issuer’s seal. On the right, a certificate with matching fields: issuer, subject, public key, validity period, serial number and permitted uses, which make up the certificate body, and the issuer’s signature over that body. PASSPORT Issued by A government Holder J. Rivera Valid until 2031 The photo ties it to a person CERTIFICATE IssuerExample Org Issuing CA SubjectJ. Rivera Public key04 9c 2f 5a … Valid2026-01-05 to 2029-01-05 Serial4F:2A:91:0C UsesDigital signature Issuer’s signature The public key ties it to a private key
A certificate works like a passport for a public key: an issuer you trust vouches for the name, and its signature covers the certificate body.

What’s inside

Most certificates follow a standard format called X.509. The main fields are:

FieldWhat it says
IssuerWho vouches for this binding and signed the certificate.
SubjectWho or what the public key belongs to, such as a person, a card or a server. On PIV cards, the PIV authentication and card authentication certificates carry the card’s identifiers in an extension called the subject alternative name.
Public keyThe subject’s public key. The matching private key stays with the subject.
Validity periodThe dates between which the certificate may be trusted.
Serial numberA number unique among the issuer’s certificates, used to identify it, for example when it’s revoked.
ExtensionsExtra rules, such as what the key may be used for and whether the subject may itself issue certificates.
SignatureThe issuer’s signature over the certificate body: all the fields above. The signature value itself sits alongside the body.

Try it: a real signature over simplified certificate fields

Your browser plays an issuer with a real signing key (ECDSA, P-256) and signs a simplified record of the fields below. A real certificate signs its encoded body, including the subject’s actual public key. Change a field after signing, then check the signature again. Nothing is sent or stored.

What a certificate does and doesn’t establish

Certificates contain public keys and can include personal or card identifiers, but no private keys. The card interface determines which certificates a reader can retrieve: on a PIV card, the card authentication certificate can be read over the contactless interface, while the PIV authentication certificate needs the contact or virtual contact interface. A copy of a certificate alone can’t answer a fresh challenge.

Each part establishes something different. The certificate identifies the subject associated with the public key. A fresh challenge, as lesson 1.6 showed, shows that the responder can use the matching private key. To identify the person at the door, the system applies the required cardholder authentication mechanism, such as a PIN, and then checks access rights. Someone holding another person’s card may be able to answer a challenge that needs no PIN.

On access cards

Smart cards used for access control often carry several certificates, each for a different purpose and each with its own key pair: for example, one to authenticate the card at a door and another for signing documents. Module 4 covers the certificates on PIV cards.

Go deeperOptional technical detail for readers who want more

X.509 extensions

Version 3 certificates carry extensions that constrain how they may be used. Key usage limits the key to purposes such as digital signatures or signing other certificates. Extended key usage names specific applications. Basic constraints says whether the subject is itself a certificate authority. Subject alternative name carries extra identifiers, which is where PIV authentication and card authentication certificates carry the card’s identifiers. Other extensions point to where revocation information and the issuer’s own certificate can be found.

Encodings

A certificate is stored in a binary format called DER. When it needs to travel as text, such as in email or a configuration file, it’s base64-encoded and wrapped in “BEGIN CERTIFICATE” and “END CERTIFICATE” lines, a format called PEM. The content is the same.

Inspecting a certificate yourself

With the OpenSSL command-line tool, openssl x509 -in cert.pem -noout -text prints every field of a certificate file. To see the certificates a website presents, openssl s_client -connect example.com:443 -showcerts prints them as PEM, which you can save and inspect the same way.

Sources

Draft lesson, awaiting technical review · Last updated 21 November 2026

Search

Press / to search from any page