An SSL certificate chain is the ordered list of certificates that links a website's certificate back to a trusted root certificate authority. It runs from the leaf certificate for your domain, through one or more intermediate certificates, to a self-signed root certificate already stored in the browser or operating system. The browser checks each signature in turn, and only trusts your site when every link verifies.
Key takeaways
- A chain has three roles: the leaf certificate for your domain, one or more intermediates, and a self-signed root trust anchor.
- Your server must send the leaf plus every intermediate, in order — the root stays in the browser's trust store and is never sent.
- The most common chain failure is an incomplete chain, where the server omits an intermediate and some visitors see a security warning.
Your browser has never met your website before, yet it trusts it within milliseconds. That trust does not come from your certificate alone. It comes from a chain of certificates, each one vouching for the next, that runs from your site back to an authority your browser already knows.
What is an SSL certificate chain?
An SSL certificate chain, also called a chain of trust or certification path, is the ordered list of certificates that connects your website's certificate back to a trusted root certificate authority. Each certificate in the chain is digitally signed by the one above it.
Think of it as a notarized paper trail. Your certificate vouches for your domain, an intermediate certificate vouches for your certificate, and a root certificate vouches for the intermediate. The browser follows the signatures from the bottom up, and if every link checks out, it accepts the connection.
Without the chain, a certificate would be a claim with no evidence. Anyone could create a certificate saying they are your bank. The chain is what turns that claim into something verifiable, because only a certificate authority the browser already trusts could have signed the link above yours.
What are the three parts of a certificate chain?
Every chain has the same three roles: a leaf certificate at the bottom, one or more intermediate certificates in the middle, and a root certificate at the top. The number of intermediates varies, but the roles do not.
| Certificate | Also called | Signed by | Where it lives | Sent by your server? |
|---|---|---|---|---|
| Root | Trust anchor | Itself (self-signed) | Browser and OS trust store | No |
| Intermediate | Subordinate CA | Root or another intermediate | Issued with your certificate | Yes |
| Leaf | End-entity certificate | Intermediate | Your web server | Yes |
Root certificate
The root certificate is the trust anchor. It is self-signed, which sounds suspicious until you realize there is nothing above it to sign it. Its trust comes from being pre-installed in browsers and operating systems after the authority behind it passed audits and was accepted into the vendor's root program.
Roots are deliberately kept offline. A certificate authority stores its root private key in a hardware security module in a physically secure facility and uses it only to sign intermediate certificates. That way, a compromise of a day-to-day signing key never touches the root.
Intermediate certificate
The intermediate certificate does the daily work. The root signs it, and it in turn signs leaf certificates for websites. A chain can contain more than one intermediate: a root may sign an intermediate, which signs another intermediate, which signs your leaf.
Intermediates exist to limit damage. If an intermediate key is compromised, the authority revokes that intermediate and issues a new one. Certificates under other intermediates, and the root itself, are unaffected, and no browser needs a trust-store update.
Leaf certificate
The leaf certificate is your actual SSL certificate. It carries your domain name, your public key, its validity dates and the signature of the intermediate that issued it. It sits at the end of the chain and cannot sign other certificates.
Leaf certificates are short-lived by design. Let's Encrypt, for example, issues leaf certificates valid for 90 days, so a stolen leaf key is useful to an attacker for only a short window and renewal is fully automated. You can see the current roots and intermediates on Let's Encrypt's Chains of Trust page.
How does a browser validate a certificate chain?
When your browser connects to a site, the server sends its leaf certificate and its intermediates during the TLS handshake. The browser then walks the chain link by link, checking each signature against the public key of the certificate above it.
Validation is more than checking signatures. For each certificate the browser also checks that the current date falls inside its validity period, that the name on the leaf matches the site you asked for, that the leaf is allowed to act as a server certificate, and that none of the certificates has been revoked.
The browser also checks the issuer name of each certificate against the subject name of the certificate above it. If any check fails at any link, the whole chain fails and the browser refuses the connection or shows a warning. There is no partial trust.
Revocation is checked through OCSP responses or certificate revocation lists. A revoked intermediate invalidates every leaf beneath it, which is why authorities can shut down a compromised intermediate quickly without touching the root.
What is the correct order for a certificate chain?
The correct order is leaf first, then the intermediate that signed the leaf, then each higher intermediate in turn, ending with the intermediate signed by the root. The root itself is not included.
This order matters because clients read the chain top-down from the leaf. If the intermediates arrive out of order, some clients can still rebuild the chain by matching issuer and subject names, but many cannot, and older clients and some libraries fail outright.
Most certificate authorities give you the chain in the right order. The file is often called fullchain.pem: leaf plus intermediates, but not the root. Pointing your web server at that file instead of at the leaf alone is the single most common fix for chain errors.
For nginx, the ssl_certificate directive should point at the full chain file. For Apache, the chain goes in the same file referenced by SSLCertificateFile. In both cases, test after every renewal, because a renewal that reinstalls only the leaf silently breaks the chain.
What breaks a certificate chain?
An incomplete chain is the most common failure: the server sends the leaf but omits one or more intermediates. The site often looks fine to the person who set it up, because their browser has the missing intermediate cached from another site. New visitors, mobile apps and API clients see a warning instead.
- Incomplete chain. The intermediate is missing from the server configuration, so the client cannot reach a trusted root.
- Expired certificate. Any certificate in the chain can expire: leaf, intermediate or root. An expired intermediate breaks every site beneath it at once.
- Wrong order. Intermediates served out of order confuse clients that expect leaf-first ordering.
- Untrusted root. The chain ends at a root the visitor's trust store does not include, which is common with private or self-signed roots and with newer roots on old devices.
- Revoked intermediate. A revoked intermediate invalidates the whole chain below it until the server is reissued under a new intermediate.
- Name mismatch. The leaf does not cover the hostname being visited, so the chain is valid but for the wrong site.
Cross-signing adds a wrinkle. When a newer root is cross-signed by an older root, servers can send a longer chain that older clients trust and newer clients also accept. If the cross-sign expires, as Let's Encrypt's DST Root CA X3 cross-sign did on 30 September 2024, servers that still serve the old chain break for old clients. Keeping chains current is part of routine certificate maintenance.
How do you check and fix a broken certificate chain?
Check the live chain from outside your network, not from your own browser, because your browser may have cached intermediates that hide the problem. The free SSL checker shows the chain your server actually sends and flags missing links.
From the command line, openssl s_client -connect example.com:443 -servername example.com -showcerts prints every certificate your server sends. Count them: you should see the leaf and at least one intermediate, and the last line should read Verify return code: 0 (ok).
If an intermediate is missing, download the correct intermediate from your certificate authority and rebuild the chain file in leaf-first order, then reload the web server. If a certificate has expired, renew it and confirm the new chain is installed, because renewal tools sometimes write the new leaf without its intermediates.
Cloudflare documents the same pattern for origin servers: when its edge cannot validate an origin certificate in Full (Strict) mode, a missing intermediate is the usual cause, and the fix is to serve the full chain. You can read that in the Cloudflare SSL/TLS troubleshooting docs.
Certificate chain vs a single certificate: what is the difference?
A single certificate on its own proves nothing. A chain proves that a trusted authority vouches for the certificate, and that the authority itself is vouched for by a root your device already trusts.
Self-signed certificates are the single-certificate case: the server signs its own leaf and there is no chain. They encrypt traffic, but no independent authority has verified the identity behind them, so browsers warn about them. They are fine for internal test systems where you control the trust store, and wrong for a public website.
Private chains work the same way inside a company. An internal root is distributed to company devices, intermediates issue certificates for internal services, and everything validates because the devices trust the private root. The mechanics are identical; only the trust store is different. Our guide to securing your Wi-Fi covers the same trust idea on home networks.
The bottom line
A certificate chain is a short, ordered proof: your leaf, signed by an intermediate, signed by a root your visitor already trusts. Keep the chain complete and in order, renew before anything in it expires, and test from a fresh device after every change.
Most chain problems are configuration problems, not cryptography problems. Serve the full chain, watch expiry dates across all three levels, and let automation handle renewal. You can check the chain your site serves right now with the free SSL checker.
Frequently asked questions
What is an SSL certificate chain in simple terms?
It is the paper trail that proves your website certificate is genuine. Your certificate was signed by an intermediate authority, which was signed by a root authority your browser already trusts. Each signature links to the next, so the browser can follow the trail from your site back to a root it knows.
What is the difference between a root, intermediate and leaf certificate?
The root is a self-signed certificate from a certificate authority, pre-installed in browsers and operating systems as a trust anchor. An intermediate is signed by the root and signs website certificates day to day. The leaf is the end-entity certificate for one domain, signed by an intermediate, and it cannot sign other certificates.
Does the server send the root certificate?
No. The root certificate already lives in the visitor's browser or operating system trust store, so sending it is unnecessary. Your server sends the leaf certificate and every intermediate certificate, in order. Sending the root as well is harmless in most cases but adds bytes to every handshake.
What is the correct order for a certificate chain?
Leaf first, then the intermediate that signed the leaf, then the next intermediate up, ending with the intermediate signed by the root. The file most servers use for this is often called fullchain.pem, and it contains the leaf plus intermediates but not the root.
Why does my site show a certificate error on some devices but not others?
That is the classic sign of an incomplete chain. Some browsers and operating systems have cached the missing intermediate from another site, so they can complete the chain themselves. Devices that have never seen that intermediate cannot, and they show a warning instead.
What is a cross-signed certificate?
A cross-signed certificate is one intermediate or root certificate signed by a second, different root authority. It lets a newer authority borrow trust from an older, widely trusted root while its own root is still being added to trust stores. Let's Encrypt used this approach with its ISRG Root X1 while it gained trust.
How long do certificates in a chain last?
Roots last many years: Let's Encrypt's ISRG Root X1 is trusted until 4 June 2030. Intermediates last a few years: Let's Encrypt's current YE1 and YR1 intermediates are valid until 2 September 2028. Leaf certificates are short-lived, and Let's Encrypt issues them for 90 days.
Can a certificate chain be too long?
Yes, in practice. Each extra intermediate adds bytes to the TLS handshake and another link that can expire or be revoked. Most public chains have one or two intermediates. Very long chains slow the first connection and increase the chance that an old client cannot follow the path.
Sources
The engineers and analysts who build Cysoro's domain scanner, email-authentication checks and free security tools. We test what we write about every day — SPF, DKIM, DMARC, certificates, look-alike domains and phishing — and check each guide against the relevant standards, government guidance and vendor documentation.
Checked against Sectigo's chain-of-trust guide, Let's Encrypt's Chains of Trust page and Cloudflare's SSL/TLS troubleshooting documentation.
How we write and fact-check →