Node.js ERR_TLS_CERT_ALTNAME_INVALID
TLS certificate Subject Alternative Name (SAN) does not match the requested hostname.
Runs locally in browser
Free · No login
Available (Noindex) · 2026-11-24
v1.0.0
Identifier: Node.js ERR_TLS_CERT_ALTNAME_INVALID
Platform: Node.js
Interactive Diagnostic Checklist
Safe Diagnostic Command:
openssl s_client -connect host:443 -servername host </dev/null 2>/dev/null | openssl x509 -noout -text | grep DNS:
Technical Explanation
TLS certificate Subject Alternative Name (SAN) does not match the requested hostname. Recommended verified resolution path: Re-issue certificate including the exact requested hostname/subdomain.
Worked Examples
- Read-only diagnostic command: openssl s_client -connect host:443 -servername host </dev/null 2>/dev/null | openssl x509 -noout -text | grep DNS:
Limitations & Assumptions
- Error codes can arise from multiple layers (client, CDN, reverse proxy, application, or OS). Always confirm which layer emitted the error before applying changes.
Source References & Verification
- RFC 9110 — HTTP Semantics & Official Vendor Documentation
- Linux man-pages / Python / MDN / Docker Official Docs
Resource ID: err-node-tls-altname-invalid · Technical check: 2026-11-24 (noindex pending/withheld from search)