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 wrong.host.badssl.com · 3 certificates served JSON · text

Verdict All 13 clients refuse this certificate 0 pass · 0 with a caveat · 13 fail
Chain Complete Every intermediate is served
Hostname Mismatch wrong.host.badssl.com
Leaf expires 33 days 2026-10-26T20:03:01Z

Who will this break? modelled from the served chain

VerdictClientWhy
Browsers
fail Chrome (desktop and Android) The certificate does not cover wrong.host.badssl.com.NET::ERR_CERT_COMMON_NAME_INVALID
fail Firefox The certificate does not cover wrong.host.badssl.com.SSL_ERROR_BAD_CERT_DOMAIN
fail Safari (macOS and iOS) The certificate does not cover wrong.host.badssl.com.errSSLHostNameMismatch
fail Windows (Edge, .NET, PowerShell) The certificate does not cover wrong.host.badssl.com.CERT_E_CN_NO_MATCH
Command line
fail curl and wget (OpenSSL) The certificate does not cover wrong.host.badssl.com.SSL: no alternative certificate subject name matches target host name
fail openssl s_client The certificate does not cover wrong.host.badssl.com.verify error:num=62:hostname mismatch
Languages
fail Python (requests, urllib3, certifi) The certificate does not cover wrong.host.badssl.com.[SSL: CERTIFICATE_VERIFY_FAILED] Hostname mismatch, certificate is not valid
fail Node.js The certificate does not cover wrong.host.badssl.com.ERR_TLS_CERT_ALTNAME_INVALID
fail Go (net/http) The certificate does not cover wrong.host.badssl.com.x509: certificate is valid for a.example, not b.example
fail Java (JDK 11, 17, 21) The certificate does not cover wrong.host.badssl.com.No subject alternative DNS name matching example.com found
fail Ruby, PHP and Perl (OpenSSL) The certificate does not cover wrong.host.badssl.com.hostname does not match the server certificate
Mobile and devices
fail Android apps (7.0 and later) The certificate does not cover wrong.host.badssl.com.javax.net.ssl.SSLPeerUnverifiedException: Hostname not verified
fail Docker and Alpine containers The certificate does not cover wrong.host.badssl.com.hostname mismatch

* 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

  • pass
    Leaf certificate 33 days left

    Within its validity period.

  • 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.

  • pass
    Chain order leaf first

    Leaf, then each issuer in turn.

  • fail
    Hostname does not cover wrong.host.badssl.com

    Every client fails on this, whatever the chain looks like. Usually the server's default certificate is being served because SNI routing or the virtual host does not match. The SANs on the leaf show what it is actually for.

What the server sent in the order it sent it

  1. leaf

    *.badssl.com

    33d left
    Issuer
    YR2 (Let's Encrypt)
    Valid
    2026-07-28T20:03:02Z to 2026-10-26T20:03:01Z
    Key
    RSA 2048 bit
    Signature
    SHA256-RSA
    SHA-256
    688F99185E12A494D3910CE060532826A35FE02476E17E9BAD2F68E923847CA3
    SANs
    • *.badssl.com
    • badssl.com
  2. intermediate

    YR2 (Let's Encrypt)

    710d left
    Issuer
    Root YR (ISRG)
    Valid
    2025-09-03T00:00:00Z to 2028-09-02T23:59:59Z
    Key
    RSA 2048 bit
    Signature
    SHA256-RSA
    SHA-256
    238B85A0099C65B970477D5724F1A1D475CE5058CFFE4EFA8733899BDB863C47
  3. intermediate

    Root YR (ISRG)

    2171d left
    Issuer
    ISRG Root X1 (Internet Security Research Group)
    Valid
    2026-05-13T00:00:00Z to 2032-09-02T23:59:59Z
    Key
    RSA 4096 bit
    Signature
    SHA256-RSA
    SHA-256
    072639D0B140D5BFFAE16AD9C3F6CC6086040621F51EE61A6D46A8915C07CF76

Path a browser builds: *.badssl.com › YR2 (Let's Encrypt) › Root YR (ISRG) › ISRG Root X1 (Internet Security Research Group)

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.

fullchain.pem
-----BEGIN CERTI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BL9NPP27z
RGMuHGnzS3hFIrRTfKxrzUZ9RzQWzEG3K6fJ3r2nqSltkeytis9DIBoFY9VmVyjL
M71DMi+y1+TRSJVClEMwvA4yL++7q9XZx5r5wBRWB4kQTKH5qyoZnDw7iiuh1lID
yDFx8r7i9vIJU5HS3moZLkYWAOilMaV9N56A9Bgb6dNcHkvg3NoaYA==
-----END CERTIFICATE-----

Reproduce what this page saw, from any machine with OpenSSL:

openssl s_client -connect wrong.host.badssl.com:443 -servername wrong.host.badssl.com -showcerts </dev/null 2>/dev/null | grep -c 'BEGIN CERT'
# 1 = leaf only, 2 or more = leaf plus intermediates

curl -vI https://wrong.host.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

CheckWhy it matters
Chain completenessWhether 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 verdictsPass, 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 intermediatesThe 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 extrasWhether 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).
ExpiryOf 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 SANWhether 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 keySHA-1 signatures and RSA under 2048 bits, both rejected by current clients.
The fixA 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.

ClientFetchesError on a missing intermediateNotes
Chrome (desktop and Android)yesNET::ERR_CERT_AUTHORITY_INVALIDFetches 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.
FirefoxpreloadsSEC_ERROR_UNKNOWN_ISSUERDoes 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)yesThis 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)yesCERT_E_CHAINING / PartialChainSchannel fetches missing intermediates and downloads roots on demand from Windows Update, so it is the most forgiving client here.
curl and wget (OpenSSL)noSSL certificate problem: unable to get local issuer certificateReads 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_clientnoverify error:num=20:unable to get local issuer certificateThe 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 certificaterequests 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.jsnoUNABLE_TO_VERIFY_LEAF_SIGNATURE: unable to verify the first certificateCompiles 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)nox509: certificate signed by unknown authorityUses 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)noPKIX path building failed: unable to find valid certification path to requested targetUses 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)nocertificate 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)nojavax.net.ssl.SSLHandshakeException: Trust anchor for certification path not foundConscrypt 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 containersnounable to get local issuer certificateWhatever 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

Examples

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.