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.】