Fix Certificate Verify Failed
Server or client?
Test the same URL from a browser and from a different machine. If everything fails, the server is wrong. If only one machine fails, the client's trust store, proxy or clock is the issue.
Run the domain through the SSL Checker. If it reports an incomplete chain or an expired certificate, fix that first.
Certificate verify failed: the causes
| Cause | Hint in the message | Fix |
|---|---|---|
| Missing intermediate | unable to get local issuer certificate (code 20) | Install the full chain on the server |
| Old CA bundle | Works elsewhere, fails on an old OS | Update the OS or ca-certificates |
| Corporate proxy | self signed certificate in certificate chain | Install the company root CA |
| Expired | certificate has expired | Renew and reload the server |
| Wrong hostname | does not match | Reissue with the right names, or use the right URL |
| Wrong clock | not yet valid or expired | Fix date and time sync |
Certificate verify failed: fix on the server
Use the combined file so the server sends the leaf and intermediates:
cat certificate.crt ca_bundle.crt > fullchain.pem
# Nginx
ssl_certificate /etc/ssl/example/fullchain.pem;
ssl_certificate_key /etc/ssl/example/privkey.pem;
# Apache
SSLCertificateFile /etc/ssl/example/certificate.crt
SSLCertificateChainFile /etc/ssl/example/ca_bundle.crt
Reload the web server, then re-scan.
Fix on the client
- curl: update
ca-certificates, or pass--cacert company-ca.pemfor a private CA. - Python:
pip install --upgrade certifi, or setREQUESTS_CA_BUNDLE. - Git:
git config --global http.sslCAInfo /path/to/ca.pemfor a private CA. - Node.js: set
NODE_EXTRA_CA_CERTS=/path/to/ca.pem. - pip:
pip config set global.cert /path/to/ca.pembehind a proxy.
Why not disable verification?
Flags like -k, verify=False and NODE_TLS_REJECT_UNAUTHORIZED=0 remove the protection TLS provides, so a person on the network can impersonate the server. Use them only for brief local debugging.
To inspect what a certificate says about itself, paste it into the SSL/CSR Decoder.
Documenting a fix
Once you find the cause, write down the exact command or setting that fixed it, and which machine it applied to. Verify errors tend to come back after OS upgrades, new containers and proxy changes. For teams, bake the trusted CA into the base image rather than fixing each machine by hand, and keep CA files in configuration management so the fix survives rebuilds.
Related reading: fixing chain errors, the SSL certificate chain and testing with OpenSSL.
Frequently Asked Questions
Why does it work in Chrome but not curl?
Chrome can fetch missing intermediates and uses the OS store. curl needs a complete chain and a good CA file.
Is it ever safe to ignore the error?
Only for a local test with a certificate you control. Never for production traffic.
Does the clock really matter?
Yes. Certificates have validity dates, and a client with the wrong date will reject a good certificate.
How do I trust my own CA?
Add its root certificate to the system store or point the tool at the file, as shown above.
✅ 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.