TLS Error: ERR_TLS_CERT_ALTNAME_INVALID (Hostname Mismatch)
Server certificate SAN (Subject Alternative Name) does not cover the requested domain.
Runs locally in browser
Free · No login
Independently Verified 2026-11-25
v4.0.0
Identifier: TLS Error
Platform: Security
Common Root Causes:
- Server certificate SAN (Subject Alternative Name) does not cover the requested domain.
Interactive Diagnostic Checklist
Verified Solutions:
- Issue a certificate listing both apex and `www.` hostnames in SAN extensions.
Safe Diagnostic Command:
openssl x509 -in fullchain.pem -noout -text | grep -A1 "Subject Alternative Name"
Warning: Verify configuration changes in staging or with dry-run flags (e.g. nginx -t) before reloading production services.
Technical Explanation
Server certificate SAN (Subject Alternative Name) does not cover the requested domain. Recommended diagnostic: `openssl x509 -in fullchain.pem -noout -text | grep -A1 "Subject Alternative Name"`. Remediation: Issue a certificate listing both apex and `www.` hostnames in SAN extensions.
Worked Examples
- Run `openssl x509 -in fullchain.pem -noout -text | grep -A1 "Subject Alternative Name"` 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-hostname-mismatch · Independently verified: 2026-11-25