Skip to content

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

Key points

  • A missing intermediate works in some browsers and fails in others, which makes it confusing.
  • Self-signed certificates are never trusted by public browsers.
  • Corporate proxies and antivirus can cause this for one user only.
  • Always serve the full chain, not just your own certificate.

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.

Diagnose it

Ask the server for its chain and look at the depth and verification result.

bash
# 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.

Frequently asked questions

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

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.