Software

How to Diagnose ERR_CERT_AUTHORITY_INVALID

ERR_CERT_AUTHORITY_INVALID means the browser cannot chain a site's certificate to a trusted CA. A private test CA shows the failing chain and the fix.

ERR_CERT_AUTHORITY_INVALID means the site presented a certificate, but the browser could not link it, step by step, to a certificate authority (CA) it trusts. Typical causes: a self-signed or private-CA certificate, a server that omits its intermediate certificate, or something intercepting the connection. On a public website, do not click through; on your own server, fix the certificate chain.

How the browser checks a certificate

Step throughWalk the chain from the site's certificate to a trusted root
1 / 5
  1. Step 1. Leaf certificate

    The server sends its own certificate: subject CN=localhost (plus a matching subjectAltName), signed by some issuer.

  2. Step 2. Find the issuer

    The browser looks for the issuer's certificate: first among the extra certificates the server sent, then in its own store and cache.

  3. Step 3. Repeat up the chain

    Each certificate must be signed by the next one up, and each must be valid, unexpired and allowed to act as a CA where needed.

  4. Step 4. Reach a trusted root

    The chain must end at a root certificate in the operating system's or browser's trust store. In our lab it ended at CN=BinConvert Lab Test CA, which no store trusts.

  5. Step 5. Result

    No trusted anchor → ERR_CERT_AUTHORITY_INVALID in Chrome. Name mismatch or expiry produce different errors (ERR_CERT_COMMON_NAME_INVALID, ERR_CERT_DATE_INVALID).

Reproduced with a private CA

We created a test CA, issued a certificate for localhost from it, and served it on port 9443. Without the CA, every client rejects the chain:

$ openssl verify srv.pem
error 20 at 0 depth lookup: unable to get local issuer certificate
error srv.pem: verification failed

$ curl -sS https://localhost:9443/
curl: (60) SSL certificate problem: unable to get local issuer certificate

$ openssl s_client -connect 127.0.0.1:9443 -servername localhost
depth=0 CN=localhost
verify error:num=20:unable to get local issuer certificate
 0 s:CN=localhost
   i:CN=BinConvert Lab Test CA
Verify return code: 21 (unable to verify the first certificate)

The s: and i: lines are the key diagnostic: subject localhost, issuer BinConvert Lab Test CA, and nothing that connects that issuer to a trusted root. Supplying the CA explicitly fixes it, which proves the certificate itself is fine:

$ openssl verify -CAfile ca.pem srv.pem
srv.pem: OK

$ curl -sS --cacert ca.pem https://localhost:9443/ -o /dev/null -w "HTTP %{http_code}\n"
HTTP 200

Causes and fixes

CauseClue in s_client outputFix
Self-signed certificatesubject and issuer are the sameuse a certificate from a public CA (e.g. via ACME/Let’s Encrypt)
Private/internal CAissuer is your company or lab CAinstall that CA in the trust store of the devices that need it (managed devices only)
Missing intermediatechain shows only depth 0; issuer is a known CA’s intermediateconfigure the server with the full chain file (leaf + intermediates)
TLS interception (antivirus, corporate proxy)issuer is a security product or company proxyexpected on managed networks; otherwise disable HTTPS scanning
Wrong clockother dates look offset the device’s date and time automatically

A missing intermediate is the sneaky one: some browsers can fetch or cache the intermediate and show the site as fine, while curl, Android apps or API clients fail. Always test with openssl s_client -connect host:443 -servername host -showcerts and check that the server sends the intermediate.

For visitors

If this appears on a well-known public site, especially on public Wi-Fi, something may be intercepting your traffic: don’t enter passwords, and try another network. Captive portals (hotel or airport logins) also cause it until you log in. For a device on your own network, such as a router admin page with a self-signed certificate, the warning is expected; prefer http:// on the local network or install a proper certificate.

Related TLS errors: plain HTTP on an HTTPS port triggers SSL_ERROR_RX_RECORD_TOO_LONG, and no common protocol or cipher triggers ERR_SSL_VERSION_OR_CIPHER_MISMATCH.

Sources

  1. net_error_list.h (CERT_AUTHORITY_INVALID = −202) — Chromium
  2. RFC 5280: Internet X.509 PKI Certificate and CRL Profile — IETF. certification path validation
  3. openssl-verify — OpenSSL documentation
  4. SSL Certificate Verification — curl

How we made this

Reproduced in a local lab. We created a throwaway certificate authority and a server certificate for localhost with OpenSSL 4.1.0, served it with openssl s_server, and checked it with openssl verify, openssl s_client and curl 8.7.1, with and without the CA. Outputs are quoted verbatim. The test CA was never installed in any trust store.

Performed by Claude, an AI assistant working in the BinConvert repository (macOS, OpenSSL 4.1.0, curl 8.7.1), November 16, 2026.

This article was drafted with AI assistance. Every example, calculation and command output on this page was re-run or checked before release; the lab was rebuilt from scratch and every quoted line matched. Review: automated test suite and source check, November 16, 2026.

Spotted an error? Tell us and we will correct it.

Copied to clipboard!