ssl 2026-11-28

How to Fix Node.js UNABLE_TO_VERIFY_LEAF_SIGNATURE Error

How to Fix Node.js UNABLE_TO_VERIFY_LEAF_SIGNATURE Error
Quick Answer: Node.js throws UNABLE_TO_VERIFY_LEAF_SIGNATURE when the remote server sends its leaf certificate without the intermediate CA bundle. Verify the server on our Live SSL Checker and configure fullchain.pem (or set NODE_EXTRA_CA_CERTS).

Server & Client Fixes

  • Best Fix (Server): Replace cert.pem with fullchain.pem in Nginx or your Node.js/Next.js reverse proxy.
  • Client Fix: Export NODE_EXTRA_CA_CERTS=/path/to/ca_bundle.crt instead of disabling TLS verification.
🔒 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.

Ücretsiz SSL Sertifikası, SSL Kontrol ve CSR Oluşturucu

Sunucu ayarı gerektirmeden 60 saniyede güvenilir Let's Encrypt ve Buypass SSL alın.

Related Articles