Glossary / SSL/TLS

SSL certificate chain

An SSL certificate chain is the sequence of certificates that links a website's certificate to a root certificate the browser already trusts. The server sends its own certificate plus one or more intermediates. The browser checks each signature in turn, and a missing intermediate is the most common cause of chain errors.

Copy the syntax

Show the chain a server sends

openssl s_client -connect example.com:443 -servername example.com -showcerts </dev/null

Each BEGIN CERTIFICATE block is one link; look for depth 0, 1, 2.

nginx: serve the full chain

ssl_certificate /etc/ssl/example.com/fullchain.pem;

fullchain.pem holds your certificate followed by the intermediates.

Have a name in mind?

.com $24.99 first year, renews at $24.99/yr. Other endings: not on sale yet.

In plain English

The certificate chain links your site's certificate to one the browser already trusts, through one or more middle certificates.

What to do

  • Install the full chain file from your certificate authority.
  • Test with a tool outside the browser, such as curl or openssl.
  • Reinstall the chain after every renewal.
How a certificate chain is checkedCertificate chain: example.com leaf signed by an intermediate CA, which is signed by a trusted root.1 · Leafexample.comsigned by intermediate2 · Intermediateissuing CAsigned by root3 · Rootin trust storealready trusted
The browser follows signatures from the site's certificate up to a root in its own trust store.
Path validation
RFC 5280, section 6Source: RFC 5280
Chain order sent by server
Leaf first, then intermediates, RFC 8446 section 4.4.2Source: RFC 8446
Roots issue via intermediates
Baseline RequirementsSource: CA/Browser Forum
What is an intermediate certificate?

An intermediate certificate belongs to a certificate authority and sits between its root and the certificates it issues to websites. Roots stay offline for safety, so day-to-day signing happens with intermediates.

Your server must send the intermediate along with your certificate. Browsers do not reliably fetch missing intermediates for you.

Why do I get a certificate chain error?

Usually the server is configured with the leaf certificate alone, or with the wrong intermediate after a renewal. Desktop browsers may hide the problem by caching intermediates, while phones, scripts and API clients fail. Serve the full chain file your CA provides.

What is a self-signed certificate in the chain?

That error means a certificate in the chain was signed by itself rather than by a trusted CA. It appears with test certificates, corporate inspection proxies, or a chain that includes a root the client does not trust.

Chain layers

Typical public chain; names are illustrative.
DepthCertificateSigned bySent by server?
0example.com (leaf)Intermediate CAYes
1Intermediate CARoot CAYes
2Root CAItselfNo, it is in the trust store

Questions about SSL certificate chain

How do I validate an SSL certificate chain?

Run openssl s_client with -showcerts and check that the output ends with Verify return code: 0 (ok). Online SSL testers report missing or extra chain links too.

Should the server send the root certificate?

No. The root is already in the client’s trust store, so sending it only adds bytes. TLS 1.3 allows it but it is not needed.

Why does the chain work in Chrome but fail in curl?

Desktop browsers may cache intermediates or fetch them from the address listed in the certificate. curl and many apps do not. If curl fails, your server is missing an intermediate.

Does the chain change when I renew?

Sometimes. CAs rotate intermediates, so always install the full chain file from the new issuance rather than reusing the old intermediate.

Put it to work on your own domain

See the first-year and renewal price before you pay.

.com first year$24.99, renews $24.99Check a domain
↑