Error fix
How to fix “NET::ERR_CERT_AUTHORITY_INVALID”
The browser does not trust the certificate chain—self-signed, wrong hostname, or missing intermediate.
Updated Apr 20, 2026
Tools that help with this
Fastest fix
Start here first. Step 1 fixes most cases—then work down the list.
- Install publicly trusted certs from a major CA or fix chain bundles on the server.
- Match certificate SANs to the hostname users type.
- For local dev, use mkcert or trusted dev certificates instead of click-through ignores.
What this means
TLS succeeded at the protocol level but trust validation failed before showing the page.
Common causes
Untrusted CA
Self-signed certs in prod, corporate MITM without imported root, or incomplete chain.
Name mismatch
Certificate issued for a different hostname or missing SAN.
Step-by-step fix
Fix trust
- Install publicly trusted certs from a major CA or fix chain bundles on the server.
- Match certificate SANs to the hostname users type.
- For local dev, use mkcert or trusted dev certificates instead of click-through ignores.
Related
FAQ
- Works in curl -k?
- That skips verification—fix the chain for real users.
- Expired cert?
- Renew and automate with ACME; monitor expiry alerts.
- Only Android old versions?
- Ensure modern roots and TLS; update device trust store or user agent.
Fix related issues
Still stuck? Try these related fixes next.
- Axios network error (browser)Axios could not reach the server—no response object; often CORS, TLS, or offline.
- Next.js middleware redirect loopMiddleware keeps issuing redirects—often auth checks on public paths that bounce forever.
- Service worker fetch failedA service worker intercepted a request and the network failed—offline, CORS, or bad SW scope.
- React hydration mismatchServer HTML and client render differ—often dates, random IDs, or browser-only APIs during SSR.
- Mixed content (HTTPS page, HTTP resource)A secure page tried to load scripts, images, or XHR over insecure HTTP—browsers block or downgrade.
Edit your error
Tweak the message and run again—we'll match an existing fix or generate a new page.
Original error message
NET::ERR_CERT_AUTHORITY_INVALID
