TLS/SSL Error Code UNABLE_TO_VERIFY_LEAF_SIGNATURE
The client cannot build a trusted chain to the leaf certificate.
The client cannot build a trusted chain to the leaf certificate.
| Code | UNABLE_TO_VERIFY_LEAF_SIGNATURE |
| Product | TLS/SSL |
| Company / origin | IETF · International standard |
| Category | Protocols & Standards |
| Platform / versions | TLS 1.2, TLS 1.3 · OpenSSL / Node.js clients and servers |
| Severity | fatal |
| Official source | Node.js TLS / OpenSSL ↗ |
| Last verified | 2026-11-08 |
What does TLS/SSL error UNABLE_TO_VERIFY_LEAF_SIGNATURE mean?
UNABLE_TO_VERIFY_LEAF_SIGNATURE means the client received the leaf certificate but could not verify it against a trusted root. The most common cause is a missing intermediate certificate in the server chain.
Common causes
- The server sends only the leaf certificate and omits intermediates.
- The client trust store does not contain the root CA.
- The certificate chain is incomplete or in the wrong order.
How to fix it
- Step 1
Serve the full chain: leaf plus all intermediates.
- Step 2
Verify the chain with openssl s_client -showcerts and an online chain checker.
- Step 3
Update the client trust store if the root CA is legitimately missing.
When to escalate
Related codes
| Code | Name | What it means |
|---|---|---|
CERT_HAS_EXPIRED | CERT_HAS_EXPIRED | The server certificate is past its expiration date. |
CERT_NOT_YET_VALID | Certificate Not Yet Valid | The certificate's validity period starts in the future. |
DEPTH_ZERO_SELF_SIGNED_CERT | DEPTH_ZERO_SELF_SIGNED_CERT | The server presented a self-signed certificate. |
ERR_CERT_AUTHORITY_INVALID | ERR_CERT_AUTHORITY_INVALID | The certificate was issued by an untrusted authority. |
ERR_CERT_COMMON_NAME_INVALID | ERR_CERT_COMMON_NAME_INVALID | The certificate's name does not match the requested host. |
Source & verification
This page was checked against Node.js TLS / OpenSSL on 2026-11-08. The code, product, and platform fields are kept separate from the explanation so corrections can be made without changing the URL.
Open Error Codes is independent and not affiliated with IETF. Always confirm destructive or security-sensitive steps with the official documentation.