Your site has a valid certificate from a real certificate authority, yet some visitors still see a warning that the connection is not trusted. The certificate itself is fine. What failed is the chain: the certificates your server hands the browser alongside your own, and the order it hands them over in.
This guide explains what a chain is, how the links connect, and why order matters. It also shows how to inspect a chain with the free SSL Certificate Decoder on Ovatly, with an honest caveat: reading the links is not the same as verifying them.
Contents
- Quick answer
- The three links in a chain
- How the links connect: issuer names the next subject
- Why the order matters when a server presents certificates
- How to read a chain with the decoder, step by step
- Worked example: a chain of one
- Limitations and honest tradeoffs
- Common mistakes
- FAQs
- Conclusion
- References
Quick answer
A certificate chain is the path from your site's certificate (the leaf) through one or more intermediates up to a root the browser already trusts. Each link names the next: a certificate's issuer is the subject of the certificate that signed it. The server presents the leaf first, then its intermediates in order, and the browser checks each signature until it reaches the root. You can read every link with the SSL Certificate Decoder: paste one certificate at a time, note subject and issuer, and match each issuer to the next subject. The decoder displays fields only; it does not verify signatures or trust.
The three links in a chain
The leaf is your site's own certificate. It carries your domain names in its subject alternative names and has the shortest lifetime of the set.
Intermediates sit between the leaf and the root. A certificate authority does not sign your certificate with its root key directly; it signs with an intermediate instead, so the root key stays offline and protected. Most chains have one intermediate; two is also common.
The root is the anchor, and it is self-signed: its subject and issuer are the same name. Root certificates ship inside browsers and operating systems, in a built-in trust store. Because the browser already trusts the root, the server does not send it; the browser supplies it from its own store.
How the links connect: issuer names the next subject
Every certificate carries two identity fields that matter here: the subject, who the certificate belongs to, and the issuer, who signed it. In a healthy chain, the issuer on one certificate is character-for-character the subject on the next one up.
So a typical chain reads like this: the leaf's subject names the site, its issuer names an intermediate, that intermediate's subject matches, and its issuer names the next link up, until the final issuer is the root's subject, and the root's issuer is itself.
This is how you spot a break by eye: if the leaf's issuer matches no subject among those sent with it, the bridging intermediate is missing, and the browser has nothing to hold on to between your site and the root.
Why the order matters when a server presents certificates
When a browser connects, the server sends a bundle of certificates whose order is part of the protocol: leaf first, then each signing certificate in order, up to but usually not including the root. The browser walks the bundle upward, checking that each issuer matches the next subject and that each signature is valid.
Two failure shapes follow: a missing intermediate stops the walk early and the connection is untrusted; shuffled intermediates can make a strict client fail to build the path even though all the pieces arrived. Some browsers repair this by fetching a missing intermediate, which is why a broken chain can work in one browser and warn in another. The fix is on the server: leaf first, then the intermediates in signing order.
How to read a chain with the decoder, step by step
- A chain file usually holds several PEM blocks, each starting with
-----BEGIN CERTIFICATE-----. Split it into one block per certificate. - Open the SSL Certificate Decoder and paste the first block, the leaf. The decoder reads only the first certificate in whatever you paste, so paste one block at a time.
- Write down the leaf's subject and issuer, and check its validity dates and status for today.
- Clear the box, paste the next block, and check that its subject matches the issuer you wrote down. Note its issuer in turn.
- Repeat until a certificate's issuer equals its own subject: that is a self-signed certificate, either the root or one that was never part of a trusted chain.
- Compare each certificate's SHA-256 fingerprint against the one your host or CA dashboard lists, to be sure you are reading the right certificates.
Worked example: a chain of one
Decode a self-signed test certificate and the fields tell the story at a glance. Subject: "C=US, ST=California, L=San Francisco, O=Example Corp, OU=Web Team, CN=example.com". Issuer: exactly the same string. Signature algorithm sha256WithRSAEncryption, an RSA key of 2048 bits, SANs: DNS example.com, DNS www.example.com, IP 93.184.216.34.
Because subject and issuer are identical, the chain has length one: no intermediate to read next, and no path to a root in any trust store. Fine for an internal test server; on a public site, the same certificate produces a browser warning. Contrast a CA-issued leaf: the issuer names a separate intermediate, and following the issuer-to-subject matches upward is the exercise in the steps above.
Limitations and honest tradeoffs
The decoder is deliberately minimal: it reads the standard X.509 v1 to v3 fields and the SAN extension, unusual extensions are not interpreted, and it decodes the first certificate in the pasted text only, which is why chain reading is a one-block-at-a-time job.
Decoding is display, not verification. The decoder does not check signatures, does not verify the chain of trust, and does not consult revocation lists. A certificate can decode beautifully and still be expired, revoked or issued for the wrong names. Reading the fields tells you what a certificate claims; only the browser's verification tells you whether to believe it.
Certificates are public documents and safe to paste. Private keys are not. Never paste a private key; the decoder needs only the certificate and will reject or fail to read a key block.
Common mistakes
- Pasting the whole chain file and reading only the leaf. The decoder shows the first certificate; everything below it is invisible until pasted separately.
- Sending the root from the server. Browsers already hold the roots they trust; an extra root in the bundle is dead weight, and one they do not hold still will not be trusted.
- Assuming a warning means the leaf is bad. Missing and mis-ordered intermediates are the more common cause: server configuration problems, not certificate problems.
- Skipping the fingerprint check. After a renewal, compare the SHA-256 fingerprint with your host's record to confirm the server presents the new certificate, not a cached old one.
- Trusting a self-signed certificate on a public site. Identical subject and issuer means no chain to a trusted root, whatever the dates and names say.
FAQs
What is an SSL certificate chain? It is the ordered set of certificates that connects a site's own certificate, the leaf, back to a root certificate the browser already trusts. Most chains have one or two intermediates. Each certificate was signed by the one above it.
Why does the order of the certificates matter? The server must present the leaf first, then its intermediates in signing order, so the browser can walk up to a trusted root. A missing intermediate, or intermediates in the wrong order, can make the browser show a warning even though every certificate is genuine.
Does the SSL Certificate Decoder verify my chain? No. The decoder displays the fields of the certificate you paste: subject, issuer, dates, SANs, key details and fingerprint. It does not check signatures, verify the chain of trust or consult revocation lists. Verification is the browser's job.
What happens if an intermediate certificate is missing? The browser reaches the top of what the server sent and finds an issuer it cannot connect to a trusted root, so the connection is untrusted. Some browsers can fetch a missing intermediate themselves, which is why a broken chain may work in one browser and fail in another.
Is a self-signed certificate a chain? It is a chain of one. Its subject and issuer are identical, so the chain ends where it starts and never reaches a root the browser trusts. That is why self-signed certificates trigger warnings on public sites.
Conclusion
A chain is an argument: my issuer signed me, its issuer signed it, and the name at the top is one your browser already trusts. Reading a chain with the SSL Certificate Decoder, one certificate at a time, is the fastest way to see the links and find a gap. The companion skill, reading the names a certificate actually covers, is covered in how to read the subject alternative names in a certificate. For more guides in this series, see our Website and Webmaster Tools guides, which pair each concept with the free tool that shows it.
References
- RFC 5280, the Internet X.509 certificate profile that defines subject, issuer and chain building: https://www.rfc-editor.org/rfc/rfc5280
- MDN Web Docs, on how browsers build and check certificate chains: https://developer.mozilla.org/en-US/docs/Web/Security/Transport_Layer_Security