Beta

Create a tenant

A new tenant starts with its own users, OAuth settings, audit history and logs. You are its first Tenant Admin.

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 signature, Ava's browser needs the issuing CA's public key, 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 revoke 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 key 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.

The server sends its certificate and the intermediate. The root comes from the client's own trust store, and without the intermediate there is no path to it.

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 HTTPS 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.

Keeping authorities in check

CA certificates carry constraints of their own, and a verifier enforces each one. The basic constraints extension marks a certificate as a CA with CA:TRUE, and its path length limits how many CA levels may appear below it. A CA's key usage names the jobs its key may do: keyCertSign to sign certificates and cRLSign to sign the lists of revoked certificates that Validating a certificate describes. A certificate that says CA:FALSE, such as Lab Photos' own, can still sign some bytes with its key, but a verifier rejects anything it claims to have issued.

Name constraints can restrict a CA to issuing only for certain domains. They are useful when an organization is given a CA of its own: a CA limited to names under photos.example cannot issue a certificate a client will accept for any other site.

Any trusted CA can technically issue a certificate for any name its constraints allow. If a CA is tricked or compromised into issuing a certificate for photos.example to someone else, the certificate would validate. Certificate Transparency makes that kind of mistake visible. CAs record the certificates they issue in public, append-only logs, and browsers require evidence of logging before accepting a publicly trusted certificate. Lab Photos can monitor those logs for certificates issued for its names and act on any it did not request.

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 TLS, 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 pair 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.

Why does a browser trust a root CA certificate? 1 of 3

Choose one answer.

A server sends only its own certificate, not the intermediate that issued it. Some clients fail with an unknown-issuer error. What is the fix? 2 of 3

Choose one answer.

A server sends its certificate, the intermediate and a self-signed root that is not in the client's trust store. Every signature in that chain verifies. Should the client accept it? 3 of 3

Choose one answer.

Try it in the Lab

We value your privacy

We use cookies and similar technologies to enhance your browsing experience, and analytics to understand our traffic. By clicking "Allow all", you consent to optional analytics. Cookie Policy

Learn identity