Certificate authorities and chains
A certificate is only as believable as its issuer. Clients follow a chain of certificates from a server to an authority they already trust, and that starting point is a decision, not a proof.
Who vouches for the issuer?
The certificate for photos.example was signed by "Example Issuing CA 1". To check that signatureA value made with a private key that lets anyone holding the matching public key check that a message came from the key's holder and has not been changed. It proves origin and integrity; it does not hide the message., Ava's browser needs the issuing CA's public keyThe half of a key pair that can be shared freely. It checks signatures made with the matching private key and can encrypt data that only that private key can decrypt., and it needs a reason to trust that key. If the answer were another certificate, signed by another CA, the question would repeat. At some point the browser has to start from keys it already trusts.
Those starting points are the root certificates in a trust store, the list that HTTPS and certificates in practice found on your own computer. Operating systems and browsers ship with a curated list of root CAs. To be included, a CA must meet the requirements of that platform's root program, which typically include regular independent audits and published rules for how it checks requests before issuing. Root programs also share a common baseline: the CA/Browser Forum's Baseline Requirements, which set rules for how publicly trusted CAs validate, issue and revokeCancelling a credential, token, certificate, or authenticator before it would expire, so that it is no longer accepted. Whether every copy stops working at once depends on how services check it. certificates for websites.
Following a chain
A publicly trusted root CA does not sign website certificates directly; the Baseline Requirements forbid it. A root's private keyThe half of a key pair that its owner keeps to themselves and uses to create signatures or decrypt data. Anyone who obtains it can act as its owner. is too valuable to use every day, so it is kept offline and used occasionally to sign certificates for intermediate CAs. The intermediates do the daily work of issuing certificates to sites like Lab Photos.
That creates a certificate chain. Each certificate's issuer is the subject of the next one up: the certificate for photos.example names Example Issuing CA 1 as its issuer, the intermediate's certificate names Example Root CA, and the root names itself. The certificates also say which of them may issue others. The two CAs say CA:TRUE, and the intermediate adds a path length of 0, which means no further CA may appear below it, only certificates like Lab Photos'.
- Subject
- photos.example
- Issuer
- Example Issuing CA 1
- CA
- FALSE
- Path length
- Not a CA
- Comes from
- The server
- Subject
- Example Issuing CA 1
- Issuer
- Example Root CA
- CA
- TRUE
- Path length
- 0: no CA below
- Comes from
- The server
- Subject
- Example Root CA
- Issuer
- Example Root CA
- CA
- TRUE
- Path length
- No limit
- Comes from
- The trust store
The server sends the leaf and the intermediate
- Leaf checked with
- The intermediate's key
- Intermediate checked with
- The root's key
- Root
- From the trust store
- Path
- Leaf, intermediate, root
Ends at a trusted root
The server sends the leaf only
- Leaf checked with
- Nothing: no intermediate
- Intermediate checked with
- Never reached
- Root
- Never reached
- Path
- Stops at the leaf
Unknown issuer
Certificates the server sends help build the path. Only the trust store decides what is trusted.
When Lab Photos' server starts a connection, it sends its own certificate and the intermediate. The browser builds a path upward. It uses the intermediate's public key to check the signature on Lab Photos' certificate, then uses the root's public key from its trust store to check the signature on the intermediate. If each link verifies and the path ends at a trusted root, the chain is complete.
Supplying a certificate and trusting one are different jobs. Everything the server sends is only material for building the path, and the browser treats it as untrusted until each signature checks out and the path ends at a root in its own store. A server could send a root too, but that would change nothing: a root counts only if the client already has its own copy. The cross-signed certificate from HTTPSHTTP protected by TLS, so traffic is encrypted and checked for changes while it travels. It protects the connection, but does not prove that the site at the other end is honest. and certificates in practice is more of the same material, an extra link that lets older clients build a path to a root they do have.
A common configuration mistake is sending only the server's own certificate. Some clients have seen the intermediate before, or can fetch it using the issuer address in the certificate, and connect without trouble. Others fail with an "unknown issuer" error. The fix belongs on the server: configure it to send the complete chain, not ask users or developers to trust the server certificate directly.
Trust anchors
A root certificate's subject and issuer are the same name, which makes it self-issued. It is also signed with the private key that matches its own public key, which makes it self-signed. A verifier can check that signature with the public key inside the certificate, but the check proves only that whoever made the certificate held that key. Matching names alone don't even prove that much. Anyone can create a self-signed certificate claiming any name.
A root is trusted only because the platform chose to put it in the trust store. That is why roots are called trust anchors: the chain ends there by decision, not by proof.
That decision can be changed. Platforms remove roots from their stores when a CA repeatedly breaks the rules, and certificates chaining to those roots stop being trusted. The reverse is also possible. An organization can add its own root to managed laptops so they trust internal services. Malware, or a network inspection proxy, can add a root to make its own certificates acceptable for any site. Because a root in the store can vouch for any name, adding one is a significant security decision.
Private PKI
Not every certificate needs to be trusted by the whole world. Lab Photos' internal services, its staff laptops and its connection to the printing service might use certificates from Lab Photos' own CA. This private PKI is trusted only by the systems configured to trust its root, which is exactly what Lab Photos wants for systems the public never visits. Private PKIs often issue client certificates too: with mutual TLSTransport Layer Security, the protection behind HTTPS. It encrypts traffic between two connected systems, detects changes on the way, and uses certificates so the client can confirm which server it reached., an application presents one to prove which application it is, the way a server's certificate proves which server it is.
Issuing works the same way in a private PKI as in a public one. The subject makes its own key pairA private key and a public key generated together and mathematically linked. The private key creates signatures and the public key checks them, but the private key cannot practically be worked out from the public one. and sends the CA a certificate signing request (CSR): its public key and the names it wants, signed with its private key so the CA knows the requester holds that key. The CA checks that the requester may use those names, copies what it approves into a new certificate, adds its own extensions, such as the CA flag and permitted uses, and signs it. The private key never leaves the requester.
Running a private CA means taking on the responsibilities a public CA would otherwise carry: protecting the root key, deciding who may request certificates for which names, issuing and renewing them, and revoking them when needed. The trust it gains in return reaches exactly as far as Lab Photos chooses: only the systems it configures to trust its root, for only the names and uses its CA approves.
Check your understanding
Try these questions before moving on. If an answer isn't right, use the feedback and try again.
Try it in the Lab
- Build a chain and choose its trust anchorSplit Lab Photos' public chain, build a small private PKI with your own issue function, test each prediction with a PASS or FAIL table, then choose your root as the lab tenant's trust anchor.