Skip to content

SSL Certificate Chain Explained: Root, Intermediate and Your Certificate

Your certificate is trusted because it links back to a root through intermediates. Learn how the chain works, what causes chain errors and how to fix them.

9 min readUpdated Nov 20, 2026By XPASS Editorial Team

SSL Certificate Chain Explained: Root, Intermediate and Your Certificate

If you have ever installed a certificate and then seen a browser warning that did not make sense, you may have met a chain problem. The certificate itself was valid, the domain name matched and the dates were fine, yet some visitors still saw an error. In many such cases the real cause is not the certificate but the certificates around it.

Browsers do not trust a site because its certificate says so. They trust it because the certificate links, step by step, to an authority they already know. That series of links is called the certificate chain. This guide explains each link, how browsers walk the chain, what typically goes wrong, and how to install and test a chain properly. It builds on the ideas in the guide to the certificate signing request, which is where your own certificate begins.

The idea of a chain of trust

Imagine you receive a letter of introduction from a stranger. You do not know the stranger, but the letter is countersigned by someone you know and respect. You trust the introduction because of that second signature. A certificate chain applies the same idea to the internet.

Your computer and your browser ship with a list of authorities they trust, called a trust store or root store. The companies and organisations behind these entries are held to strict requirements, such as those set out by the CA/Browser Forum. A website's certificate is not signed directly by those roots in most cases. Instead, the trust passes down through a few levels.

The three levels of the chain

Level What it is Where it lives
Root certificate The top of the chain. Self-signed, and trusted because it is built into the device or browser In the operating system or browser trust store
Intermediate certificate Signed by the root (or by another intermediate). Used to sign everyday end-entity certificates Sent by your server together with your certificate
End-entity (leaf) certificate Your site's certificate, naming your domain Installed on your server

The root is kept offline and guarded carefully, because its compromise would be a disaster. To limit the risk, the root does not sign thousands of ordinary certificates directly.

The intermediate does that work day to day. If an intermediate has a problem, the authority can retire it without having to replace the root across every device in the world. Some chains have more than one intermediate.

The leaf is the certificate you ordered. It contains the domain names, your public key and a signature from the intermediate. You can read more about the key inside in public key and private key in SSL.

A related term you may meet is cross-signing. Sometimes a newer intermediate or root is also signed by an older, widely trusted root so that older devices can still build a path to something they recognise. This is why a provider may publish more than one possible chain for the same certificate. You do not need to design this yourself; you only need to follow the provider's instructions for which files to install, and to understand that more than one valid path can exist.

How a browser checks the chain

When a visitor connects, the server sends its certificate, ideally with the intermediates. The browser then does roughly this:

  1. Reads the leaf certificate and checks that the domain matches and the dates are valid.
  2. Looks at who signed the leaf. That is the intermediate.
  3. Verifies the leaf's signature using the intermediate's public key.
  4. Looks at who signed the intermediate, and repeats until it reaches a root.
  5. Checks that this root is in its own trust store.
  6. Applies further checks, for example on revocation status and permitted usage.

If any link is missing, expired or not trusted, the browser rejects the whole chain. The warning message depends on the problem, but the result is the same: the visitor is told the connection is not private or the certificate cannot be verified.

What the server should send

The server should send the leaf first, followed by the intermediate certificates in order, each one signing the one before it. The root is normally left out, because the client already has it. Sending an unnecessary root only increases the size of the handshake.

Providers deliver certificates in different file layouts. You might receive:

  • a single file with only your certificate;
  • a separate bundle containing the intermediates;
  • a combined "full chain" file with the leaf followed by the intermediates.

Which one you configure depends on your server software. In many web servers the setting that points to the certificate expects the combined file, while some older Apache setups use a separate directive for the intermediate bundle. Check your software's documentation, since the settings have changed between versions.

Why chain errors happen

  • The intermediate was not installed. This is the most common cause. The server sends only the leaf. A desktop browser may rescue the situation by downloading the missing intermediate from a link inside the leaf certificate, or by remembering one it saw elsewhere. Command line tools, API clients, older Android devices and some mobile apps do not, and fail with an error.
  • The wrong order. An intermediate placed before the leaf, or intermediates in the wrong sequence, can confuse some clients.
  • The wrong intermediate. A provider can have several intermediates. Using the file from a previous order or another product breaks the signature link.
  • An expired intermediate. The leaf might be new, but if an old intermediate bundle is still installed, the chain is no longer valid.
  • A root that devices no longer trust. Very old devices may not have a newer root in their trust store, so even a correct chain fails for them. Authorities sometimes offer an alternative chain for compatibility; the provider's documentation explains the options.
  • Caches and several servers. A load balancer or a CDN may send an older chain than the origin does. Test every public entry point.

How to test your chain

Do these checks after every installation or renewal:

  1. Use an online SSL checker. Enter your domain name. A good checker draws the path from your leaf to the root and warns about a missing intermediate, a wrong order or an expiring certificate.
  2. Use the command line. The openssl tool can display what the server actually sends:
openssl s_client -connect example.com:443 -servername example.com -showcerts

Look at the list of certificates and at the verification result near the end. A message such as "unable to get local issuer certificate" often points to a missing intermediate on the server.

  1. Test with more than one client. A desktop browser, a command line client and a phone together give a more honest picture than one browser alone.
  2. Check each name. If your site uses several host names or subdomains, test each one, because they may use different certificates or servers.
  3. Re-test after renewal. A new certificate usually comes with new or updated intermediates; do not assume the old bundle still fits.

A plain example

A company renews the certificate for its web shop. The administrator downloads the new certificate file from the provider and replaces only the old certificate on the server, leaving the previous intermediate file in place. On the administrator's laptop the site opens without a warning. A day later, customers who use a particular mobile payment app report that the connection fails, and the company's own scheduled integration script stops working.

A test with openssl shows that the chain ends with an intermediate that the new leaf was not signed by. The provider's documentation confirms that the new certificate uses a different intermediate. The administrator installs the combined full-chain file, restarts the web server, and tests again. The path from leaf to root is now complete, the mobile app connects, and the integration script runs. The lesson is simple: whenever the leaf changes, check that the intermediates match.

Installing the chain step by step

The exact commands depend on your hosting setup, but the workflow is almost always the same.

  1. Collect the files from the current order. Download the leaf certificate and the intermediate bundle, or the combined full-chain file, from your provider. Keep them together in one folder and note the order date so you do not mix them with older files.
  2. Match the leaf with your private key. The certificate must belong to the key on your server. If you created a request yourself, use the key that was generated with it.
  3. Build the combined file if needed. When you only have separate files, place the leaf first and the intermediates after it in a single text file, with each certificate's begin and end lines intact and no blank or missing lines in between.
  4. Point the server at the right files. In a control panel, paste the certificate and the intermediate bundle into the matching boxes. On your own server, set the certificate path to the combined file and the key path to your private key.
  5. Reload the web server. Many servers need a reload or restart before they send the new certificate. Check the configuration for errors first, because a typo can stop the service.
  6. Test immediately. Use the checks from the previous section on the public name, not only on localhost.

If your site sits behind a CDN or a load balancer, the public certificate may be managed there, and the chain on your origin server is a separate matter. Make sure you know which layer visitors actually talk to. A control panel that installs certificates automatically will normally assemble the chain for you, but it is still worth running one test after the first installation to confirm it.

Limits and what to watch for

  • A valid chain is not the same as a safe website. The chain proves identity and encryption; it does not protect against weak passwords or vulnerable software. For the wider picture see the article on the limits of certificate types for business, such as what entry-level certificates do not cover.
  • Do not disable verification to make an error disappear. Turning off certificate checks in an application hides the symptom and removes the protection. Fix the chain instead.
  • Watch expiry dates for intermediates too. Renewing your leaf does not renew the chain above it.
  • Providers may change their intermediates. The set of files you need can change from one issuance to the next, so always use the files delivered with the current order.
  • Private keys and chains are different files. The chain contains only public certificates. You never add the private key to a bundle that you share.
  • Different platforms behave differently. Because trust stores differ between operating systems, devices and applications, a test on one platform is not proof for all.

Summary

An SSL certificate chain links your site certificate to a trusted root through one or more intermediates. Browsers walk the chain and reject the connection if a link is missing, out of order or expired. The most common mistake is installing only the leaf and forgetting the intermediates, which some clients tolerate and others do not. Install the leaf followed by the intermediates, leave out the root, test with an online checker and the openssl command, and repeat the test after each renewal. When you are ready to choose a certificate for your domain, the SSL page is the place to compare the available types.

Frequently asked questions

What is an SSL certificate chain?

It is the series of certificates that links your server certificate to a root certificate that browsers already trust. The usual order is your certificate, one or more intermediate certificates, and then the root.

Why does my site work in one browser but show an error in another tool?

Often the server sends only its own certificate and leaves out the intermediate. Some browsers can fetch or cache the missing intermediate, while command line tools, older devices and mobile apps cannot. Installing the full chain fixes it.

Should I install the root certificate on my server?

Normally no. The root is already in the visitor's trust store, so the server only needs to send its own certificate and the intermediates. Sending the root adds size without adding trust.

How do I check my certificate chain?

Use an online SSL checker or the openssl s_client command to see which certificates the server sends and in what order. Look for a complete path from your certificate to a trusted root and for any warning about a missing intermediate.

About the author

Bob Kanokphon Thongdee, founder of XPASS VPN

Bob Kanokphon Thongdee

  • Founder of XPASS VPN
  • Co-founder of eSIMonline.asia
  • More than 7 years in online marketing
  • Founder of Cojourney Visa and Cojourney Travel

Need an SSL certificate?

Pick the certificate type that fits your site and see the price before you check out.

SSL from $14.99

See SSL certificates

Keep reading

SSL Guides

What Is a CSR and When Do You Need to Create One Before Ordering SSL?

A Certificate Signing Request carries your public key and site details to the certificate authority. See when you need it, how to create it and common mistakes.

9 min read

SSL Guides

No-Cost SSL Certificates: Limits to Weigh for a Business Site

A no-cost SSL certificate does the core job of encrypting traffic. This guide explains where a business site may run into limits and how to decide what fits.

10 min read

SSL Guides

Public Key and Private Key in SSL: What They Are and How to Protect Them

Every SSL certificate depends on a key pair. See what the public and private key do, why the private key must stay secret, and what to do if it leaks.

9 min read