Troubleshooting guide
NET::ERR_CERT_AUTHORITY_INVALID: how to fix it
The browser could not trace the site's certificate back to an authority it trusts. Most often the server is missing an intermediate certificate.
3 min read10 sectionsUpdated
On this page
What the error means
A certificate is trusted through a chain: your certificate is signed by an intermediate, which is signed by a root in the browser's store. If a link is missing or the root is unknown, the browser stops. Desktop Chrome sometimes fetches missing intermediates by itself, but API clients and some phones do not. That is why a site can work on your laptop and fail elsewhere.
Common causes
- The server sends only the leaf certificate, with no intermediates.
- Self-signed or private CA certificates on a public site.
- Antivirus or a corporate proxy re-signing HTTPS traffic with its own root.
- A very old device that does not include a newer root.
- A staging certificate from Let's Encrypt left in production.
# How many certs does it send? Expect leaf + intermediate(s)
openssl s_client -connect example.com:443 -servername example.com -showcerts </dev/null 2>/dev/null | grep -c 'BEGIN CERTIFICATE'
# Issuer, subject and verification result
openssl s_client -connect example.com:443 -servername example.com </dev/null 2>/dev/null | grep -E 'Verif|subject=|issuer='
# Who issued it, as your browser sees it?
curl -vI https://example.com 2>&1 | grep -E 'issuer|subject|SSL certificate'Fixes
Install the full chain. With Certbot, point Nginx at fullchain.pem rather than cert.pem. With a commercial certificate, concatenate your certificate and then the intermediates, leaf first. Replace self-signed certificates on public sites with a free one from a public CA. Reload the server and test again.
As a visitor: check whether the certificate issuer is your antivirus or employer. If so, the problem is local. Do not click through this warning on a site where you would enter passwords.
Catch it automatically
Certificate checks that only look at the expiry date miss chain errors. Use SSL monitoring that validates the whole chain from outside, and test after every renewal, because a renewal script that writes only the leaf breaks a site that was fine the day before.
Why does the site work in Chrome but fail in curl?
Chrome can fetch a missing intermediate on its own, and curl does not. The server must send the full chain.
Is it safe to proceed past this warning?
Only on a system you control and understand. On any public site, the warning can mean someone is intercepting the connection.
Which Let's Encrypt file should Nginx use?
fullchain.pem for ssl_certificate and privkey.pem for ssl_certificate_key.
Check it now, free
- SSL certificate checker: Expiry date, issuer, chain and host name match.
Related reading
- "Your connection is not private": how to fix it: Fix "Your connection is not private" (NET::ERR_CERT_*): expired or mismatched certificates, wrong device clocks, missing intermediates and Wi-Fi portals.
- NET::ERR_CERT_REVOKED: how to fix it: Fix NET::ERR_CERT_REVOKED: why a certificate authority revokes certificates, how browsers learn about it, and how site owners replace a revoked certificate.
- NET::ERR_CERT_COMMON_NAME_INVALID: how to fix it: Fix NET::ERR_CERT_COMMON_NAME_INVALID: certificates missing www or a subdomain, wrong SNI defaults and CDN misconfiguration, with commands to check SANs.
- ERR_BAD_SSL_CLIENT_AUTH_CERT: how to fix it: Fix ERR_BAD_SSL_CLIENT_AUTH_CERT: client certificates that are expired, untrusted or not selected, mutual TLS settings and corporate device certificates.
- ERR_BLOCKED_BY_CLIENT: how to fix it: Fix net::ERR_BLOCKED_BY_CLIENT: ad blockers and privacy extensions blocking scripts, images and API calls, and how developers avoid false blocks.
- ERR_CONNECTION_CLOSED: how to fix it: Fix ERR_CONNECTION_CLOSED: servers closing connections early, TLS problems, firewalls, crashing apps and proxy timeouts, with checks for site owners.
Watch your own site and services with VitalRix
Uptime checks, APM, logs, real-user monitoring, alerts and status pages in one place. Every product has a free tier and no credit card is needed.