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 192.178.223.108:465 as smtp.gmail.com · 3 certificates served JSON · text

Verdict All 13 clients accept this chain 13 pass · 0 with a caveat · 0 fail
Chain Complete Every intermediate is served
Hostname Matches smtp.gmail.com
Leaf expires 64 days 2026-11-27T08:06:05Z

Who will this break? modelled from the served chain

VerdictClientWhy
Browsers
pass Chrome (desktop and Android) Builds and verifies the chain from what the server sends.
pass Firefox Builds and verifies the chain from what the server sends.
pass Safari (macOS and iOS) Builds and verifies the chain from what the server sends.
pass Windows (Edge, .NET, PowerShell) Builds and verifies the chain from what the server sends.
Command line
pass curl and wget (OpenSSL) Builds and verifies the chain from what the server sends.
pass openssl s_client Builds and verifies the chain from what the server sends.
Languages
pass Python (requests, urllib3, certifi) Builds and verifies the chain from what the server sends.
pass Node.js Builds and verifies the chain from what the server sends.
pass Go (net/http) Builds and verifies the chain from what the server sends.
pass Java (JDK 11, 17, 21) Builds and verifies the chain from what the server sends.
pass Ruby, PHP and Perl (OpenSSL) Builds and verifies the chain from what the server sends.
Mobile and devices
pass Android apps (7.0 and later) Builds and verifies the chain from what the server sends.
pass Docker and Alpine containers Builds and verifies the chain from what the server sends.

* 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 64 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.

  • pass
    Hostname smtp.gmail.com

    The certificate covers this name.

What the server sent in the order it sent it

  1. leaf

    smtp.gmail.com

    64d left
    Issuer
    WR2 (Google Trust Services)
    Valid
    2026-09-04T08:06:06Z to 2026-11-27T08:06:05Z
    Key
    ECDSA P-256
    Signature
    SHA256-RSA
    SHA-256
    56B68D5383ABA040F9FDEDD5981C68C7A99B225398FFE1653D72F9F693B3A03A
    SANs
    • smtp.gmail.com
  2. intermediate

    WR2 (Google Trust Services)

    880d left
    Issuer
    GTS Root R1 (Google Trust Services LLC)
    Valid
    2023-12-13T09:00:00Z to 2029-02-20T14:00:00Z
    Key
    RSA 2048 bit
    Signature
    SHA256-RSA
    SHA-256
    E6FE22BF45E4F0D3B85C59E02C0F495418E1EB8D3210F788D48CD5E1CB547CD4
  3. intermediate

    GTS Root R1 (Google Trust Services LLC)

    491d left
    Issuer
    GlobalSign Root CA (GlobalSign nv-sa)
    Valid
    2020-06-19T00:00:42Z to 2028-01-28T00:00:42Z
    Key
    RSA 4096 bit
    Signature
    SHA256-RSA
    SHA-256
    3EE0278DF71FA3C125C4CD487F01D774694E6FC57E0CD94C24EFD769133918E5

Path a browser builds: smtp.gmail.com › WR2 (Google Trust Services) › GTS Root R1 (Google Trust Services LLC)

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 CERTIFICATE-----
MIIENTCCAx2gAwIBAgIRALlVJi0vPMjsCiqB25g6YkYwDQYJKoZIhvcNAQELBQAw
OzELMAkGA1UEBhMCVVMxHjAcBgNVBAoTFUdvb2dsZSBUcnVzdCBTZXJ2aWNlczEM
MAoGA1UEAxMDV1IyMB4XDTI2MDkwNDA4MDYwNloXDTI2MTEyNzA4MDYwNVowGTEX
MBUGA1UEAxMOc210cC5nbWFpbC5jb20wWTATBgcqhkjOPQIBBggqhkjOPQMBBwNC
AARDAaqPAJJHtPgF6dRrK5lQfLmRJmM0/lDmHDImMJAS7HKh5H9ph02+7gbtDuNl
6cCv6VpFVLVj7+l1N1aofDZko4ICHzC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yL3IxLmNybDATBgNVHSAEDDAKMAgGBmeBDAECATANBgkq
hkiG9w0BAQsFAAOCAgEARXWL5R87RBOWGqtY8TXJbz3S0DNKhjO6V1FP7sQ02hYS
TL8Tnw3UVOlIecAwPJQl8hr0ujKUtjNyC4XuCRElNJThb0Lbgpt7fyqaqf9/qdLe
SiDLs/sDA7j4BwXaWZIvGEaYzq9yviQmsR4ATb0IrZNBRAq7x9UBhb+TV+PfdBJT
DhEl05vc3ssnbrPCuTNiOcLgNeFbpwkuGcuRKnZc8d/KI4RApW//mkHgte8y0YWu
ryUJ8GLFbsLIbjL9uNrizkqRSvOFVU6xddZIMy9vhNkSXJ/UcZhjJY1pXAprffJB
vei7j+Qi151lRehMCofa6WBmiA4fx+FOVsV2/7R6V2nyAiIJJkEd2nSi5SnzxJrl
Xdaqev3htytmOPvoKWa676ATL/hzfvDaQBEcXd2Ppvy+275W+DKcH0FBbX62xevG
iza3F4ydzxl6NJ8hk8R+dDXSqv1MbRT1ybB5W0k8878XSOjvmiYTDIfyc9acxVJr
Y/cykHipa+te1pOhv7wYPYtZ9orGBV5SGOJm4NrB3K1aJar0RfzxC3ikr7Dyc6Qw
qDTBU39CluVIQeuQRgwG3MuSxl7zRERDRilGoKb8uY45JzmxWuKxrfwT/478JuHU
/oTxUFqOl2stKnn7QGTq8z29W+GgBLCXSBxC9epaHM0myFH/FJlniXJfHeytWt0=
-----END CERTIFICATE-----

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

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

curl -vI https://smtp.gmail.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.