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.
What’s inside
Most certificates follow a standard format called X.509. The main fields are:
| Field | What it says |
|---|---|
| Issuer | Who vouches for this binding and signed the certificate. |
| Subject | Who 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 key | The subject’s public key. The matching private key stays with the subject. |
| Validity period | The dates between which the certificate may be trusted. |
| Serial number | A number unique among the issuer’s certificates, used to identify it, for example when it’s revoked. |
| Extensions | Extra rules, such as what the key may be used for and whether the subject may itself issue certificates. |
| Signature | The 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
- RFC 5280: Internet X.509 Public Key Infrastructure Certificate and CRL Profile
- FIPS 201-3: Personal Identity Verification (PIV) of federal employees and contractors
- NIST SP 800-73-5 Part 1: Interfaces for PIV, end-point PIV card application namespace, data model and representation
- NIST SP 800-116 Rev. 1: Guidelines for the use of PIV credentials in facility access
Draft lesson, awaiting technical review · Last updated 21 November 2026