Fix 'SSL Certificate Not Trusted'
How trust works
Your certificate is signed by an intermediate CA, which is signed by a root CA already stored in browsers and operating systems. The server must send the leaf certificate plus the intermediates. If any link is missing, expired or unknown, the browser cannot build a path to a trusted root and shows an error such as NET::ERR_CERT_AUTHORITY_INVALID.
SSL certificate not trusted: causes and fixes
| Cause | Clue | Fix |
|---|---|---|
| Missing intermediate | Works in some browsers, fails on mobile or in tools like curl | Serve the full chain (fullchain.pem or leaf plus CA bundle) |
| Self-signed certificate | Issuer and subject are the same | Replace with a certificate from a public CA |
| Expired certificate | "notAfter" date has passed | Renew and reload the server |
| Name mismatch | Hostname missing from the certificate | See ERR_CERT_COMMON_NAME_INVALID |
| Untrusted or private CA | Issuer is an internal CA | Use a public CA, or install the CA on client devices |
| Wrong device date | Fails for one user only | Correct the date and time on that device |
| Antivirus or proxy interception | Issuer is a security product | Check local security software or corporate proxy |
Diagnose from the server side
openssl s_client -connect example.com:443 -servername example.com -showcerts < /dev/null
Look at the "Certificate chain" block. You should see your certificate and at least one intermediate. A line such as "unable to verify the first certificate" confirms a missing intermediate. The SSL decoder helps read the certificate details if you paste a certificate.
SSL certificate not trusted: fix the chain
Nginx needs one file with the leaf first, then the intermediates:
cat certificate.crt ca-bundle.crt > fullchain.crt
ssl_certificate /etc/ssl/fullchain.crt;
ssl_certificate_key /etc/ssl/private.key;
Apache uses the separate file instead:
SSLCertificateFile /etc/ssl/certificate.crt
SSLCertificateKeyFile /etc/ssl/private.key
SSLCertificateChainFile /etc/ssl/ca-bundle.crt
On newer Apache versions you can also put the chain in the certificate file. Reload the server and retest. If the key and certificate might not match, check them with the key matcher.
Behind a CDN or proxy
The visitor sees the CDN's certificate, while your origin certificate is checked separately. If visitors see the error, review the CDN's SSL settings. If the CDN reports an origin error instead, read the Cloudflare 526 guide.
What not to do
- Do not ask users to bypass the warning or install random certificates.
- Do not disable certificate verification in your code or scripts. It removes the protection TLS provides.
- For internal tools, use a proper internal CA distributed to devices, or a public certificate for an internal hostname.
After fixing, confirm with the SSL checker and, to protect against recurrence, set up automatic renewal as described in renewing without downtime.
Related reading: the SSL certificate chain, fixing chain errors, the record too long error, installing SSL on Windows hosting with a PFX and updating Search Console after a migration.
Frequently Asked Questions
Why does my site work on desktop but not on mobile?
Desktop browsers sometimes fetch a missing intermediate on their own. Mobile and many tools do not, so the chain must be complete on the server.
Is a self-signed certificate ever fine?
For local testing, yes. For public sites, no, since no visitor's browser trusts it.
Does a free certificate cause trust errors?
No. Certificates from Let's Encrypt are trusted by mainstream browsers when installed with the full chain.
Why did it break when nothing changed?
Common reasons are expiry, a failed renewal, or a CA changing its intermediate certificates while your server serves an old bundle.
✅ Post-Installation Verification & SEO Checklist
After applying the steps above, run through this 5-point checklist to prevent browser warnings and protect your Google SEO rankings:
- Verify full CA chain trust and TLS 1.3 support using our Live SSL Checker.
- Scan for Mixed Content HTTP links and check HSTS/CSP headers on Security Headers Checker.
- Enforce a permanent 301 HTTP-to-HTTPS redirect with our HTTPS Redirect Generator.
- Confirm both root and
wwwversions resolve cleanly to one canonical HTTPS URL. - Verify your HTTPS property and
sitemap.xmlinside Google Search Console and Bing Webmaster Tools.