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 we connect to the domain on port 443 and verify the certificate chain the server sends against a
standard set of trusted root certificates, the way curl or a programming language does, and check that the
certificate covers the host name. The check fails on any verification error: an expired or not yet valid
certificate, a missing intermediate, an untrusted or self-signed certificate, or a name mismatch.
Risk
Browsers sometimes fill in a missing intermediate certificate from their cache, so the site looks fine in your
browser while API consumers, payment webhooks, mobile apps, monitoring and curl fail. A name mismatch or a
self-signed certificate fails everywhere and trains users to click through warnings.
How to fix it
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:
| 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
Append the "CA bundle" 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, www. included, for example
certbot certonly --nginx -d example.com -d www.example.com. Caddy gets 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 must print Verify return code: 0 (ok), and
curl -sS https://example.com/ -o /dev/null must exit without an error.
When a warning is fine
- A domain used only internally, with a private CA. The check uses public roots, so it fails; leave such domains out of the external checks.
- 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