A reader doesn’t know every card in the world. It starts with a set of trust anchors. Every certificate it accepts must have a valid path to an anchor it recognizes.
Certificate authorities
A certificate authority (CA) is the issuer of certificates: an organization, its policies and its signing key. Before it signs, it checks, itself or through an authorized registration authority and under its published policy, that the subject is who they claim to be and controls the private key. Its signature is what turns “this key belongs to J. Rivera” from a claim into a statement a reader can rely on, if the reader trusts that CA.
Root, intermediate and end entity
CAs are usually arranged in a hierarchy:
- Root CA. Its certificate is self-signed: it vouches for itself. That’s acceptable only because relying parties install it deliberately in their trust store, where it supplies a trust anchor: a public key and identity they trust as a starting point. The root’s private signing key is precious and usually kept offline; relying parties only need the public certificate.
- Intermediate CAs. The root signs certificates for one or more intermediate, or issuing, CAs. They do the day-to-day issuing, so the root key rarely needs to be used.
- End-entity certificates. The certificates on cards, servers and devices, signed by an intermediate. They hold a subject’s public key and can’t issue certificates themselves.
The layers limit damage. If an intermediate is compromised, it can be revoked and replaced while the root, and everything issued under other intermediates, stays trusted.
Checking a chain
Accepting a certificate takes two separate steps:
- Find a candidate path from the card’s certificate to an anchor this system trusts. This is path building; in larger PKIs there may be more than one possible path.
- Validate the path. Starting from the anchor’s public key, check each certificate below it: that its signature verifies with its issuer’s key, that it’s within its validity period, that each issuer is allowed to act as a CA, that nothing has been revoked where the policy requires a check, and that the path and the card’s certificate meet this site’s policy and intended use.
Accept the certificate only if an acceptable path validates. If one candidate path fails, another may still succeed; if none does, the certificate isn’t trusted, however perfect it looks on its own.
Try it: validate a chain
A reader has found a path from J. Rivera’s card to the root above, and is validating it. Untick a condition to see why validation fails.
Where the trust store lives
In access control, the trust store is part of the system’s configuration: which roots this site accepts. It may sit in the reader, in a controller or in a validation service behind the access control system. Choosing those roots is a security decision, and the next lesson looks at the options.
Go deeperOptional technical detail for readers who want more
Path validation in detail
RFC 5280, section 6, defines the algorithm. Besides signatures, dates and revocation, it processes basic constraints (is this issuer a CA?), key usage (may this key sign certificates?), path length limits, name constraints (an issuer may be limited to certain names) and certificate policies (identifiers that say under which rules a certificate was issued, which a relying party can require).
Building the path
The certificate on a card doesn’t always arrive with its full chain. A relying party may already hold the intermediate certificates, fetch them from an address listed in the certificate, or receive them from the card. Building the right path is a separate step from validating it, and in large PKIs with cross-certificates there may be more than one possible path.
Why not trust the intermediate directly?
A relying party could install an intermediate as its trust anchor, and some do, to narrow what they accept. The trade-off is maintenance: when the intermediate is replaced, every relying party that anchored on it must be updated.
Sources
Draft lesson, awaiting technical review · Last updated 21 November 2026