troubleshooting 2026-12-02 ⏱ 3 min read

Fix Certificate Verify Failed

Fix Certificate Verify Failed
Quick Answer: "Certificate verify failed" means the client could not validate the server's certificate chain. Typical causes are a missing intermediate on the server, an outdated CA bundle on the client, a corporate proxy, an expired certificate, a wrong hostname, or a wrong system clock. Fix the cause and keep verification on.

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

CauseHint in the messageFix
Missing intermediateunable to get local issuer certificate (code 20)Install the full chain on the server
Old CA bundleWorks elsewhere, fails on an old OSUpdate the OS or ca-certificates
Corporate proxyself signed certificate in certificate chainInstall the company root CA
Expiredcertificate has expiredRenew and reload the server
Wrong hostnamedoes not matchReissue with the right names, or use the right URL
Wrong clocknot yet valid or expiredFix 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.pem for a private CA.
  • Python: pip install --upgrade certifi, or set REQUESTS_CA_BUNDLE.
  • Git: git config --global http.sslCAInfo /path/to/ca.pem for a private CA.
  • Node.js: set NODE_EXTRA_CA_CERTS=/path/to/ca.pem.
  • pip: pip config set global.cert /path/to/ca.pem behind 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.

🔒 Test Your Website SSL Certificate Now
Run Free SSL Check →

✅ 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 www versions resolve cleanly to one canonical HTTPS URL.
  • Verify your HTTPS property and sitemap.xml inside Google Search Console and Bing Webmaster Tools.
Technically Reviewed by TryFreeSSL Security Team
Last updated: 2026-12-05
About Us →

Free SSL Certificates, Live SSL Checker & CSR Generator

Issue trusted Let's Encrypt SSL certificates in 60 seconds with zero server setup.

Related Articles

🤖 TryFreeSSL AI Assistant