SSL certificate chain checker.
Works in Chrome, fails in curl? This tool connects once, captures the certificate chain exactly as your server sends it, and shows which clients will accept it and which will refuse: browsers, curl, Python, Java, Node, Go, Android. If an intermediate is missing it fetches it the way a browser would, tells you who will not, and hands you the corrected fullchain.pem.
Connected to 104.154.89.105:443 as expired.badssl.com · 3 certificates served JSON · text
Who will this break? modelled from the served chain
| Verdict | Client | Why |
|---|---|---|
| Browsers | ||
| fail | Chrome (desktop and Android) | The leaf certificate is outside its validity period.NET::ERR_CERT_DATE_INVALID |
| fail | Firefox | The leaf certificate is outside its validity period.SEC_ERROR_EXPIRED_CERTIFICATE |
| fail | Safari (macOS and iOS) | The leaf certificate is outside its validity period.errSSLCertExpired |
| fail | Windows (Edge, .NET, PowerShell) | The leaf certificate is outside its validity period.CERT_E_EXPIRED |
| Command line | ||
| fail | curl and wget (OpenSSL) | The leaf certificate is outside its validity period.SSL certificate problem: certificate has expired |
| fail | openssl s_client | The leaf certificate is outside its validity period.verify error:num=10:certificate has expired |
| Languages | ||
| fail | Python (requests, urllib3, certifi) | The leaf certificate is outside its validity period.[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired |
| fail | Node.js | The leaf certificate is outside its validity period.CERT_HAS_EXPIRED |
| fail | Go (net/http) | The leaf certificate is outside its validity period.x509: certificate has expired or is not yet valid |
| fail | Java (JDK 11, 17, 21) | The leaf certificate is outside its validity period.PKIX path validation failed: CertificateExpiredException |
| fail | Ruby, PHP and Perl (OpenSSL) | The leaf certificate is outside its validity period.certificate verify failed (certificate has expired) |
| Mobile and devices | ||
| fail | Android apps (7.0 and later) | The leaf certificate is outside its validity period.java.security.cert.CertPathValidatorException: Certificate expired |
| fail | Docker and Alpine containers | The leaf certificate is outside its validity period.certificate has expired |
* passes, but for a reason the server did not earn. Verdicts come from the served chain, the Mozilla root store, 121 roots, as of 13 August 2026, and how each client is known to behave; nothing is executed in a browser or a JVM. Client root stores differ at the edges (see the reference table below).
Findings
-
fail
Leaf certificate expired 2015-04-12
Every client refuses an expired certificate. Renew and deploy; if a renewal already ran, it did not reach this endpoint.
-
pass
Chain completeness 2 intermediates served
The server sends every intermediate a strict client needs. The chain builds to a root in the Mozilla store without fetching anything.
-
fail
Intermediate expiry expired 2020-05-30
COMODO RSA Certification Authority (COMODO CA Limited) has expired. Every leaf signed by it fails, however fresh the leaf is. Your CA has a newer intermediate; download the current bundle and redeploy, or reissue.
-
pass
Chain order leaf first
Leaf, then each issuer in turn.
-
pass
Hostname expired.badssl.com
The certificate covers this name.
What the server sent in the order it sent it
-
leaf
*.badssl.com
expired -
intermediate
COMODO RSA Domain Validation Secure Server CA (COMODO CA Limited)
872d left -
intermediate
COMODO RSA Certification Authority (COMODO CA Limited)
expired
Path a browser builds: *.badssl.com › COMODO RSA Domain Validation Secure Server CA (COMODO CA Limited) › COMODO RSA Certification Authority (COMODO CA Limited)
The fix nothing to change in the chain
The chain is complete and in order. If a client still fails against this host, the problem is on the client: an old root store (Node, certifi or Java that has not been updated), a container without ca-certificates, or a corporate proxy re-signing traffic. How to tell which.
-----BEGIN CERTIFICATE----- MIIFSzCCBDOgAwIBAgIQSueVSfqavj8QDxekeOFpCTANBgkqhkiG9w0BAQsFADCB kDELMAkGA1UEBhMCR0IxGzAZBgNVBAgTEkdyZWF0ZXIgTWFuY2hlc3RlcjEQMA4G A1UEBxMHU2FsZm9yZDEaMBgGA1UEChMRQ09NT0RPIENBIExpbWl0ZWQxNjA0BgNV BAMTLUNPTU9ETyBSU0EgRG9tYWluIFZhbGlkYXRpb24gU2VjdXJlIFNlcnZlciBD QTAeFw0xNTA0MDkwMDAwMDBaFw0xNTA0MTIyMzU5NTlaMFkxITAfBgNVBAsTGERv bWFpbiBDb250cm9sIFZhbGlkYXRlZDEdMBsGA1UECxMUUG9zaXRpdmVTU0wgV2ls ZGNhcmQxFTATBgNVBAMUDCouYmFkc3NsLmNvbTCCASIwDQYJKoZIhvcNAQEBBQAD ggEPADCCAQoCggEBAMIE7PiM7gTCs9hQ1X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5wfWYQ//u+aen/e7KJD2AFsQX j4rBYKEMrltDR5FL1ZoXX/nUh8HCjLfn4g8wGTeGrODcQgPmlKidrv0PJFGUzpII 0fxQ8ANAe4hZ7Q7drNJ3gjTcBpUC2JD5Leo31Rpg0Gcg19hCC0Wvgmje3WYkN5Ap lBlGGSW4gNfL1IYoakRwJiNiqZ+Gb7+6kHDSVneFeO/qJakXzlByjAA6quPbYzSf +AZxAeKCINT+b72x -----END CERTIFICATE-----
Reproduce what this page saw, from any machine with OpenSSL:
openssl s_client -connect expired.badssl.com:443 -servername expired.badssl.com -showcerts </dev/null 2>/dev/null | grep -c 'BEGIN CERT' # 1 = leaf only, 2 or more = leaf plus intermediates curl -vI https://expired.badssl.com 2>&1 | grep -iE 'issuer|SSL certificate problem'
Server configuration for the file above is in how to build a correct fullchain.pem.
About this tool
This server opens one TLS connection to the host and port you give it, with the SNI name you give (the host by default), and keeps the certificates exactly as the server sent them, in the order it sent them. It then does what a strict client does: tries to build a path from the leaf to a root in the Mozilla root store, 121 roots, as of 13 August 2026 using only what was served. If that fails it does what Chrome does instead: follows the Authority Information Access URL in the leaf to fetch the missing issuer, and tries again. The difference between those two results is the whole "works in Chrome, fails in curl" problem, and the verdict matrix is that difference spelled out per client.
The verdicts are modelled, not executed. No browser, JVM or Python interpreter runs on this server. Each row is a documented behaviour: whether the client fetches intermediates, whether it has public intermediates preloaded, whether it requires a Subject Alternative Name, and what it prints when it fails. Root stores differ slightly between clients (Java's cacerts, Node's compiled-in bundle and Android's store all lag Mozilla by months to years), so a chain that ends in a very new root can fail on one of them and pass here; the table below says where to look.
What the chain checker reports
| Check | Why it matters |
|---|---|
| Chain completeness | Whether the served certificates alone reach a trusted root. If they do not, and fetching the issuer over AIA makes them, the chain is incomplete: browsers recover, most other clients fail with unable to get local issuer certificate. This is the most common real-world certificate fault. |
| Client verdicts | Pass, pass with a caveat, or fail for 13 client families, each with the reason and the exact error string that client prints, so you can match it to the one in your logs. |
| Missing intermediates | The certificate the server should be sending and is not, fetched from the CA so you can see it and so the fullchain below is complete. |
| Order and extras | Whether the leaf comes first and each issuer follows, whether the root is being sent (wasted bytes), and whether a certificate in the bundle signs nothing (usually a leftover from a previous CA). |
| Expiry | Of the leaf and of every intermediate. An expired intermediate takes every site signed by it down at once, and monitoring that watches only the leaf will not see it coming. |
| Hostname and SAN | Whether the certificate covers the name you asked for, and whether it has a Subject Alternative Name at all. CN-only certificates are refused by Chrome, Firefox, Safari, Go and Python 3. |
| Signature and key | SHA-1 signatures and RSA under 2048 bits, both rejected by current clients. |
| The fix | A fullchain.pem built from the correct path, leaf first, root omitted, ready to paste, plus the OpenSSL command to see what this page saw. |
The clients in the matrix
Each row of the verdict table is one of these behaviours. "Fetches" means the client follows the AIA URL in a leaf to download a missing intermediate. "Preloads" means it ships every publicly disclosed intermediate and so rarely needs to. The error column is what you will find in that client's logs when the chain is incomplete.
| Client | Fetches | Error on a missing intermediate | Notes |
|---|---|---|---|
| Chrome (desktop and Android) | yes | NET::ERR_CERT_AUTHORITY_INVALID | Fetches missing intermediates from the AIA URL in the leaf, and caches ones it has seen. Uses the Chrome Root Store, which tracks Mozilla's closely. |
| Firefox | preloads | SEC_ERROR_UNKNOWN_ISSUER | Does not fetch over AIA, but preloads every intermediate disclosed to Mozilla's CA programme, so a missing public intermediate is usually papered over. |
| Safari (macOS and iOS) | yes | This Connection Is Not Private (errSSLXCertChainInvalid) | Apple's verifier fetches missing intermediates. iOS 13 and later also require a SAN and refuse leaves valid for more than 825 days. |
| Windows (Edge, .NET, PowerShell) | yes | CERT_E_CHAINING / PartialChain | Schannel fetches missing intermediates and downloads roots on demand from Windows Update, so it is the most forgiving client here. |
| curl and wget (OpenSSL) | no | SSL certificate problem: unable to get local issuer certificate | Reads the distribution's ca-certificates bundle (Mozilla's roots) and never fetches intermediates. This is the client most people discover the problem with. |
| openssl s_client | no | verify error:num=20:unable to get local issuer certificate | The reference view of what came over the wire. -showcerts prints exactly the certificates the server sent. |
| Python (requests, urllib3, certifi) | no | [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate | requests uses the certifi bundle, which is Mozilla's roots as of whenever certifi was last upgraded. No AIA fetching. Python 3.7 and later ignore the CN entirely. |
| Node.js | no | UNABLE_TO_VERIFY_LEAF_SIGNATURE: unable to verify the first certificate | Compiles Mozilla's roots into the binary rather than reading the system store, so an old Node release is an old root store. No AIA fetching. |
| Go (net/http) | no | x509: certificate signed by unknown authority | Uses the system store on Linux (so an Alpine image needs ca-certificates installed). No AIA fetching. Refuses CN-only certificates since Go 1.15. |
| Java (JDK 11, 17, 21) | no | PKIX path building failed: unable to find valid certification path to requested target | Uses the JDK's own cacerts file, not the operating system's. AIA fetching exists but is off unless com.sun.security.enableAIAcaIssuers=true is set. |
| Ruby, PHP and Perl (OpenSSL) | no | certificate verify failed (unable to get local issuer certificate) | All three wrap OpenSSL and behave like curl: system roots, no AIA. |
| Android apps (7.0 and later) | no | javax.net.ssl.SSLHandshakeException: Trust anchor for certification path not found | Conscrypt never fetches intermediates, and apps do not share Chrome's cache. Android 7.1.1 and older additionally lack ISRG Root X1 (Let's Encrypt). |
| Docker and Alpine containers | no | unable to get local issuer certificate | Whatever runs inside behaves like curl or Go above. If the image has no ca-certificates package at all, every HTTPS connection fails whatever the server sends; that one is fixed in the Dockerfile, not on the server. |
Why a certificate works in Chrome but fails in curl
A public certificate is not trusted on its own. The client has to build a path from your leaf, through one or more intermediates, to a root it already has. The server is supposed to send the leaf and every intermediate; the client supplies the root. When the server sends only the leaf, a strict client has a leaf signed by something it has never seen, and stops there.
Browsers are not strict. Chrome, Safari and Windows read the AIA URL embedded in the leaf and download the missing intermediate on the fly. Firefox has every public intermediate preloaded. All of them also cache intermediates from other sites, and Let's Encrypt's are on half the web. So the person who deployed the certificate opens the site, sees a padlock, and ships. Then a webhook sender, a mobile app, a CI job or a monitoring agent connects, and every one of them fails, because none of them fetch. The longer version is why your certificate works in Chrome but fails in curl.
How to build a correct fullchain.pem
Every server wants the same thing: the leaf first, then each intermediate in turn, in one PEM file, and no root. The result panel above produces exactly that from the correct path. Certbot writes it as fullchain.pem next to cert.pem; the mistake is pointing the server at cert.pem. Commercial CAs send it as a separate ca-bundle.crt or intermediate.crt; the mistake is not concatenating it. The step-by-step version, including how to find the right intermediate when the CA's download page is unhelpful, is how to build a correct fullchain.pem.
# nginx ssl_certificate /etc/ssl/site/fullchain.pem; ssl_certificate_key /etc/ssl/site/privkey.pem; # Apache 2.4.8 and later (SSLCertificateChainFile is deprecated) SSLCertificateFile /etc/ssl/site/fullchain.pem SSLCertificateKeyFile /etc/ssl/site/privkey.pem # HAProxy wants the key in the same file cat fullchain.pem privkey.pem > /etc/haproxy/certs/site.pem bind :443 ssl crt /etc/haproxy/certs/site.pem # Check the file before you reload: prints one subject/issuer pair per certificate openssl crl2pkcs7 -nocrl -certfile fullchain.pem | openssl pkcs7 -print_certs -noout
Cloud load balancers (AWS ALB and CloudFront, Google, Azure Front Door) have a separate "certificate chain" field when you upload your own certificate. It is optional in the form and mandatory in practice: leave it empty and you have shipped a leaf-only chain to every non-browser client.
Common chain problems
- Leaf only: the certificate was installed without the intermediate. Browsers pass, everything else fails. Serve the fullchain.
- Expired intermediate: the leaf was renewed, the bundle was not. Every client fails, including browsers unless they can fetch a current one. Download the CA's current intermediate and redeploy.
- Wrong intermediate: a bundle from the previous CA is still being served with a leaf from the new one. Shows here as an unrelated certificate plus an incomplete chain.
- Root sent: harmless but wasted bytes on every handshake. Remove it from the file.
- One edge out of four: a renewal that reached three load balancers and not the fourth. Check each edge by putting its IP in Host and the site name in SNI.
- Client-side, not server-side: the chain is complete here but a client still fails. That client has an old root store, no
ca-certificatespackage, or a proxy in the way. See unable to get local issuer certificate for how to tell.
Examples
- incomplete-chain.badssl.com: the missing intermediate, recovered over AIA, browsers pass and the rest fail
- example.com: a complete chain that passes everywhere
- self-signed.badssl.com: an untrusted root
- expired.badssl.com: an expired leaf
- wrong.host.badssl.com: a hostname mismatch
- smtp.gmail.com:465: a mail server's chain
From the command line
curl "kirkdiamond.com/tools/chain?host=example.com" gives the verdict matrix and findings as plain text, with the corrected fullchain appended when the served one is incomplete; add &format=json for structured output including fullchain_pem, and &port= and &sni= as needed. Only public hosts can be checked, the AIA fetch goes through the same guard, and nothing about the connection is stored.