OpenSSL Error: unable to verify the first certificate

TLS server sent only the leaf certificate without its intermediate CA chain.

Runs locally in browser Free · No login Independently Verified 2026-11-25 v4.0.0
Identifier: OpenSSL Error Platform: Security
Common Root Causes:
  • TLS server sent only the leaf certificate without its intermediate CA chain.

Interactive Diagnostic Checklist

Verified Solutions:
  1. Configure Nginx `ssl_certificate` to point to `fullchain.pem`, not `cert.pem`.
Safe Diagnostic Command:
openssl s_client -connect host:443 -showcerts
Warning: Verify configuration changes in staging or with dry-run flags (e.g. nginx -t) before reloading production services.

Technical Explanation

TLS server sent only the leaf certificate without its intermediate CA chain. Recommended diagnostic: `openssl s_client -connect host:443 -showcerts`. Remediation: Configure Nginx `ssl_certificate` to point to `fullchain.pem`, not `cert.pem`.

Worked Examples

  • Run `openssl s_client -connect host:443 -showcerts` to confirm root cause before applying the fix.

Limitations & Assumptions

  • Always test configuration changes in staging or with dry-run flags (e.g. `nginx -t`) before reloading production services.

Source References & Verification

Resource ID: err-openssl-unable-verify-first-cert · Independently verified: 2026-11-25

Related Resources