ssl-guides 2026-12-02 ⏱ 4 min read

What Is an SSL Certificate Chain?

What Is an SSL Certificate Chain?

When a browser trusts your certificate, it does so because your certificate links back to a root that the browser already trusts. That link is the certificate chain, also called the chain of trust. A broken or incomplete chain is one of the most common causes of "works in Chrome, fails in the API client" problems.

SSL certificate chain: the three parts

PartWhat it isWhere it lives
Leaf (server) certificateIssued to your domainYou install it on the server
Intermediate certificateIssued to the CA that signs leaf certificatesYou should serve it with the leaf
Root certificateSelf-signed CA certificateBuilt into operating systems and browsers

Each certificate is signed by the one above it. The client walks up the chain until it reaches a root in its trust store. If every signature is valid and no certificate has expired, the chain is accepted.

Why intermediates exist

Root keys are kept offline because their compromise would be catastrophic. CAs issue intermediate certificates and use those to sign everyday leaf certificates. If an intermediate is compromised, only that branch needs replacing.

What your server should send

Send the leaf and all intermediates, but not the root. Most CAs provide a "fullchain" file that is in the right order: leaf first, then intermediates.

-----BEGIN CERTIFICATE-----   (leaf: your domain)
-----END CERTIFICATE-----
-----BEGIN CERTIFICATE-----   (intermediate)
-----END CERTIFICATE-----

SSL certificate chain: symptoms of a broken chain

  • Some browsers work and others warn. Desktop browsers sometimes fetch a missing intermediate on their own. Servers, mobile apps and command-line tools often do not.
  • Errors such as "unable to get local issuer certificate" or "PKIX path building failed".
  • A certificate that looks fine in the dashboard but fails in an API test.

Check the chain

echo | openssl s_client -connect example.com:443 -servername \
  example.com -showcerts | \
  grep -E "s:|i:"

Each certificate prints a subject (s:) and an issuer (i:). The issuer of one should match the subject of the next. If only one certificate appears, the intermediates are missing.

Fix an incomplete chain

  1. Download the intermediate bundle from your CA, or use the fullchain file your ACME client created.
  2. Point the web server at the full chain file, not at the leaf only.
  3. Reload the server.
  4. Test again from a client that does not cache intermediates, such as curl from a clean machine.
# Nginx
ssl_certificate     /etc/ssl/example/fullchain.pem;
ssl_certificate_key /etc/ssl/example/privkey.pem;

Behind a proxy, check which component sends the chain. See reverse proxy SSL fixes. For Tomcat and Java keystores, read installing SSL on Apache Tomcat and converting PEM to a keystore.

Cross-signing

Sometimes a new CA is cross-signed by an older, widely trusted root so older devices keep working. This can add an extra link to the chain. Follow your CA's current instructions on which chain to serve, because they change when roots are rotated.

Remember

Always serve leaf plus intermediates, in order, and test from outside your own machine. For help matching files, use the key pair matcher guide.

Chains and different clients

Not every client builds the chain the same way. Browsers keep a cache of intermediates they have seen, so a site that omitted its intermediate may still load on a machine that visited a related site earlier. A fresh server or container has no such cache. This is why chain errors appear first in monitoring tools, CI pipelines and mobile apps.

Alternative chains

Some CAs offer more than one chain for the same certificate, for example one that is cross-signed for old devices and one that is shorter. Choose based on the oldest client you need to support. If you do not know, use your ACME client's default and test with your own clients.

Quick checklist

  • The file you installed starts with the leaf certificate for your domain.
  • The next certificate is the issuer of the first.
  • No root is included, and no expired certificate is in the file.
  • A test from a clean machine with curl returns no certificate errors.

Related reading: the intermediate certificate, fixing chain errors and the root certificate.

Frequently Asked Questions

Why does the site work in a browser but fail in an app?

The browser may fetch a missing intermediate on its own. Most other clients do not, so they see an incomplete chain and reject the certificate. Send the full chain from the server.

Which certificates should the server send?

The leaf certificate and every intermediate above it, in order. The root is not needed, because clients already hold it.

How do I check the chain?

Run openssl s_client -connect example.com:443 -showcerts and count the certificates it returns, or use an SSL checker that reports whether the chain is complete.

🔒 Test Your Website SSL Certificate Now
Run Free SSL Check →

✅ Post-Installation Verification & SEO Checklist

After applying the steps above, run through this 5-point checklist to prevent browser warnings and protect your Google SEO rankings:

  • Verify full CA chain trust and TLS 1.3 support using our Live SSL Checker.
  • Scan for Mixed Content HTTP links and check HSTS/CSP headers on Security Headers Checker.
  • Enforce a permanent 301 HTTP-to-HTTPS redirect with our HTTPS Redirect Generator.
  • Confirm both root and www versions resolve cleanly to one canonical HTTPS URL.
  • Verify your HTTPS property and sitemap.xml inside Google Search Console and Bing Webmaster Tools.
Technically Reviewed by TryFreeSSL Security Team
Last updated: 2026-12-05
About Us →

Free SSL Certificates, Live SSL Checker & CSR Generator

Issue trusted Let's Encrypt SSL certificates in 60 seconds with zero server setup.

Related Articles

🤖 TryFreeSSL AI Assistant