ERR_TLS_CERT_ALTNAME_FORMAT


如果用户提供的 subjectaltname 属性违反编码规则,则 checkServerIdentity 会抛出此错误。 Node.js 本身生成的证书对象始终符合编码规则,永远不会出现此错误。

This error is thrown by checkServerIdentity if a user-supplied subjectaltname property violates encoding rules. Certificate objects produced by Node.js itself always comply with encoding rules and will never cause this error.