← Back to Learning Hub

DNS • Intermediate • 5 min read

What Is an SSL Certificate Chain? Root to Leaf

The SSL/TLS certificate chain explained: leaf, intermediate, and root, how browsers build the path of trust, and why your server must send the intermediates.

An SSL certificate chain is the ordered set of certificates that connects the certificate on your server to a root certificate a browser already trusts. It exists because browsers do not trust your site's certificate directly. They trust a small set of root certificate authorities, and your certificate has to prove, link by link, that it was ultimately vouched for by one of those roots. The chain is that proof. Understanding its three layers, leaf, intermediate, and root, is the key to diagnosing most "certificate not trusted" errors, which are far more often a broken chain than a bad certificate.

The three kinds of certificate in a chain

A standard chain has three positions, named by where they sit relative to the trust anchor.

The leaf (also called the end-entity or server certificate) is the one issued for your hostname, such as www.example.com. It is what your web server presents and the only certificate in the chain that carries your domain name in its Subject Alternative Name list.

The intermediate certificate (sometimes two of them) belongs to the certificate authority and sits between your leaf and the root. CAs sign leaf certificates with an intermediate rather than the root itself, so the valuable root key can stay offline. The intermediate's job is to say "the CA vouches for this leaf," while the root vouches for the intermediate.

The root certificate is the trust anchor. It is self-signed and lives in the browser or operating system trust store, shipped and updated by the vendor. Crucially, the root is not sent by your server; the client already has it. Your server's job is only to supply the leaf and the intermediates that bridge to it.

How a browser builds the path of trust

When a browser connects, your server sends its certificate chain during the TLS handshake. The browser then verifies each signature from the bottom up. It checks that the leaf was signed by the intermediate, that the intermediate was signed by the next certificate, and so on, until it reaches a certificate whose issuer is a root it already trusts. Each certificate names its issuer, and the signature mathematically proves that issuer actually signed it, so the chain cannot be forged without the issuer's private key.

The path is valid only if it terminates at a trusted root. A chain that is internally consistent but ends at a root the browser has never heard of, for example a private corporate CA, will not be trusted on a machine that lacks that root. Reading the presented chain field by field is easy with the Valla DNS SSL checker, which lists the leaf, each intermediate, and the root the chain resolves to, and flags any link that is missing.

Why the server must send the intermediates

The single most common chain problem is a server that sends only the leaf. Because the browser already has the root but not the intermediate, a leaf-only response leaves a gap the browser usually cannot bridge, and the connection fails with a trust error even though the certificate itself is perfectly valid. The fix is to install the full chain, leaf followed by intermediates, which your CA provides as a bundle (often called fullchain.pem or a "CA bundle").

You can see what your server actually sends with the openssl client:

openssl s_client -connect example.com:443 -servername example.com

Near the top of the output, the "Certificate chain" section lists each certificate the server presented with its subject (s:) and issuer (i:) lines. If you see only one entry, or the chain does not reach a recognizable root CA, the server is not sending its intermediates. A complete, well-ordered chain shows the leaf first, then each intermediate, with each certificate's issuer matching the next one's subject.

Complete chain versus trusted root

Two different conditions have to be true. The chain has to be complete, meaning no link is missing between the leaf and a root. And the chain has to reach a trusted root, meaning that final root is in the verifying client's store. A chain can be complete but untrusted (a private CA root not installed on the client) or trusted but incomplete (a public CA where the server forgot to send the intermediate). The errors look similar in a browser, but the SSL checker separates them by showing exactly where the chain stops and whether the endpoint is a public root.

Frequently asked questions

What is the difference between the leaf and the root certificate?

The leaf is your server's certificate, issued for your hostname and carrying it in the SAN list. The root is the self-signed trust anchor in the browser's store. The leaf proves your identity; the root is the ultimate authority that the chain must trace back to.

Do I need to install the root certificate on my server?

No. The client already has the root in its trust store. You install the leaf and the intermediate certificates only. Sending the root as well is harmless but pointless, and some servers omit it deliberately.

Why does my certificate work in one browser but not another?

Usually a missing intermediate combined with differing behavior: some clients cache intermediates or fetch them via the certificate's AIA field, so they paper over the gap, while others do not. The real fix is to install the full chain so no client has to guess.

What is an intermediate certificate for?

It lets the CA sign your certificate without exposing the root key, which stays offline for security. The intermediate is the working signer, and the root vouches for the intermediate, which is why both links must be present for the chain to validate.

How do I see my full certificate chain?

Run openssl s_client -connect yourdomain.com:443 -servername yourdomain.com to see what the server sends, or use an SSL checker that reads the live handshake and displays the leaf, intermediates, and the root the chain resolves to in one view.

The certificate chain is just a sequence of signatures linking your server's certificate to a root the browser trusts, and most trust errors come down to a missing intermediate rather than a bad certificate. See exactly what your server presents, and where any gap is, by running your hostname through the Valla DNS SSL checker.

Troubleshooting box

If results look inconsistent, compare authoritative nameservers first, then recursive resolvers by region. Capture snapshots every 10 minutes for deterministic incident timelines.

Try VallaDNS free →

Intermediate • 5 min

Fix: SOA Serial Number Format Is Invalid

Why validators flag an invalid SOA serial, how the YYYYMMDDnn convention works, the RFC 1982 rollover rule, and how to fix a serial so secondaries update.

Intermediate • 7 min

How to Check If DNSSEC Is Valid on a Domain

Enabling DNSSEC is not the same as validating. Check that the parent DS matches your DNSKEY, that RRSIGs verify, and read the AD flag to prove the chain works.