The TLS certificate chain is not valid
- Check
tls.chain- Severity
- high
- Runs
- on our side, against a domain you verified
- Looks at
- Chain verification against the system roots, host name match
What the check looks at
Once a day the service connects to the domain on port 443 and verifies the certificate chain the server sends against a standard set of trusted root certificates, the way curl or a programming language does. It also checks that the certificate covers the host name. The check fails on any verification error: expired or not yet valid certificates, a missing intermediate, an untrusted or self-signed certificate, or a name mismatch.
Why it matters
Browsers sometimes repair a missing intermediate certificate from their cache, so the site looks fine in your browser while other clients fail: API consumers, webhooks from payment providers, mobile apps, monitoring, curl. A name mismatch or self-signed certificate fails everywhere and trains users to click through warnings.
How to fix it
Find the error first:
echo | openssl s_client -connect example.com:443 -servername example.com -verify_return_error 2>&1 \
| grep -E 'verify error|Verify return code'
Typical results and what to do:
| Error | Cause | Fix |
|---|---|---|
unable to get local issuer certificate |
the server sends only its own certificate | configure the full chain |
self-signed certificate |
a test or default certificate | get a certificate from a public CA (ACME) |
hostname mismatch |
the certificate does not list this name | add the name to the certificate, or fix DNS |
certificate has expired |
renewal failed | see the expiry check |
Full chain with certbot. Point the server at fullchain.pem, not cert.pem:
ssl_certificate /etc/letsencrypt/live/example.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/example.com/privkey.pem;
SSLCertificateFile /etc/letsencrypt/live/example.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/example.com/privkey.pem
Certificates from a commercial CA come with a "CA bundle". Append it to your certificate, server certificate first: cat example.com.crt ca-bundle.crt > fullchain.crt.
Name mismatch. Request a certificate that covers every name you serve, including www., for example certbot certonly --nginx -d example.com -d www.example.com. Caddy obtains one per site name automatically.
Reload the web server after the change: sudo nginx -t && sudo systemctl reload nginx, or sudo apache2ctl -t && sudo systemctl reload apache2.
How to check the fix
Run the openssl s_client command again. It should print Verify return code: 0 (ok). curl -sS https://example.com/ -o /dev/null should exit without an error.
When a warning is fine
- A domain that is only used internally with a private CA. The check uses public roots, so it will fail; leave such domains out of the external checks.
- During a short planned migration. Fix it the same day.
Sources
- RFC 5280: Internet X.509 Public Key Infrastructure Certificate and CRL Profile (path validation)
- RFC 8446: TLS 1.3, section 4.4.2 (the server sends its certificate chain)
- OpenSSL s_client
- Error messages from OpenSSL 3.0 in
debian:bookworm-20261027-slimon 2026-11-26