← Back to section · Digital Security
CA Hierarchies and Trust Chains: Why a Browser Trusts a Certificate
Trust is never free-standing: how root CAs, intermediate CAs and leaf certificates form a verifiable chain, what path validation actually checks, and what cross-signing is for.
When you open an HTTPS site, the padlock in the address bar rests on a complete chain of reasoning: why should this server’s certificate be believed? The answer is an unbroken chain of signatures, one end attached to the certificate itself, the other to a trust root pre-installed by your operating system or browser. Understanding that chain’s structure means understanding where PKI’s power — and its risk — actually sits.
Three tiers: root, intermediate, leaf
A root CA sits at the top. Its certificate is self-signed — its own private key signs its own public key — and self-signing proves nothing cryptographically. A root’s trust comes from out-of-band distribution: OS and browser vendors perform due diligence and then ship the root certificate in their trust stores. The global public trust stores hold only on the order of a couple of hundred roots, each belonging to an audited organization.
Intermediate (subordinate) CAs are issued by roots and do the day-to-day signing. The layering is risk isolation: root keys can live in air-gapped hardware security modules (HSMs) in physically secured facilities, touched a few times a year, while online systems only ever handle intermediate keys. Intermediates can also be split by purpose — one for server certificates, another for code signing — so revoking one does not disturb the others.
Leaf (end-entity) certificates end the chain. They are issued to websites, servers or people, and their holders may not issue further certificates. The X.509 BasicConstraints extension states explicitly whether a certificate is a CA certificate: in a leaf, the CA flag is false and the path length is zero.
Path validation: more than signature checking
Given a chain, a verifier runs the basic path validation algorithm of RFC 5280 and rejects the chain if any step fails:
- Signatures — each certificate’s signature must verify under the public key of the certificate above it, proving it was really issued by the claimed issuer;
- Validity period — the current time must fall within every certificate’s not-before and not-after window;
- Basic constraints and path length — every intermediate must be a CA certificate, and the chain may not exceed the depth the root permits, preventing subordinate CAs from quietly expanding their authority;
- Key usage and extended key usage — an issuer’s key usage must include certificate signing, and the leaf’s usage must match the task at hand (server authentication and code signing carry different identifiers);
- Name constraints — a superior CA can restrict which names or namespaces a subordinate may issue for, and out-of-scope issuance fails validation;
- Revocation status — no certificate in the chain may be revoked (the mechanisms deserve their own article).
Building the chain is not always linear either. Servers normally send the leaf plus intermediates, and the client supplies the root from its own store. If a server omits an intermediate, or several candidate issuers exist, the client must try assembling different chains — many real-world “certificate configuration” outages are chain-building failures, not bad certificates.
Cross-signing: one key, two paths upward
The same CA public key can be signed by two different superiors, producing two certificates with identical subject keys but different issuers. This is cross-signing. Its classic use is bootstrapping a new root: before a new CA’s root is trusted by older devices, an established CA can cross-sign the new root (or its intermediate), so the new certificates validate through the old root’s path. Once the new root is included in the major trust stores, the cross-sign can be retired. Large CA root rollovers — and Let’s Encrypt’s early reliance on IdenTrust’s root to gain browser trust — both used this route. The cost is longer chains and more validation paths, all of which operations teams must test.
Trust stores differ, so chains end in different places
An often-overlooked fact: “trusted” is never an absolute property of a certificate, only a property relative to some verifier’s trust store. Windows, macOS, Firefox, Chrome and the Linux distributions each maintain their own root list — broadly similar, not identical — so the same chain can validate on one device and fail on another that lacks a particular root. Enterprises add their own private roots on top (see this site’s “Building an Enterprise Private PKI”), making each verifier’s store a union of public and private anchors. Governments and industries run root systems of their own (dedicated PKIs for public administration or finance) that do not interoperate with the public Web PKI at all.
When two previously isolated PKI domains need mutual trust, the tool is cross-signing scaled up — a bridge CA: each side designates a CA to cross-certify with a neutral bridge, letting members of both domains build cross-domain chains, as in federated government PKIs. Bridging avoids importing the other domain’s entire root list, at the price of longer chains and harder policy mapping: two domains’ standards for “how thoroughly an identity must be checked” are not necessarily equivalent, so the bridge must state explicitly which of one side’s policy levels maps to which of the other’s, and ambiguous mappings fail validation. This is why large-scale mutual trust tends to converge on a few coordinators: what the CA/B Forum and the root programs do for the public Web PKI is precisely this coordination, institutionalized.
Chain length and the post-quantum squeeze
Chain length and size directly affect TLS handshake performance — the arithmetic this site works through in “Migrating PKI and Certificates to Post-Quantum”. Post-quantum signatures multiply the size of every certificate, and every extra tier multiplies the total. Practical mitigations include flattening the hierarchy (two tiers rather than three), certificate compression, and having roots sign intermediates directly instead of nesting further layers. Whatever the optimization, the isolation principle stays: roots offline, intermediates online, leaves short-lived — a structure PKI bought with decades of incidents.
Sources and further reading
- IETF, RFC 5280: Internet X.509 Public Key Infrastructure Certificate and Certificate Revocation List (CRL) Profile, 2008. https://www.rfc-editor.org/rfc/rfc5280
- CA/Browser Forum, Baseline Requirements for the Issuance and Management of Publicly-Trusted TLS Server Certificates. https://cabforum.org/working-groups/server/baseline-requirements/
- Mozilla, CA Certificate Program. https://www.mozilla.org/about/governance/policies/security-group/certs/
Tags: PKICAtrust chainX.509