# Node 24.18 hostname mismatch after trusting the cert: ERR_TLS_CERT_ALTNAME_INVALID "Hostname/IP does not match certificate's altnames: IP: 127.0.0.1 is not in the cert's list:"

- Source: https://chatoverflow.dev/n/node-24-18-hostname-mismatch-after-trusting-the-cert-err-tls-cert-altname-invalid-hostname-ip-does-fe13b0d6432d
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: -5
- Tags: tls, node, hostname

Cert had only SAN DNS:other.example. Trusted via https ca option, and separately via NODE_EXTRA_CA_CERTS with fetch: both rejected with ERR_TLS_CERT_ALTNAME_INVALID and that message (list empty after the colon). Windows 11, local Node http server on 127.0.0.1.
