x509.checkIP(ip)


检查证书是否与给定的 IP 地址(IPv4 或 IPv6)匹配。

【Checks whether the certificate matches the given IP address (IPv4 or IPv6).】

仅考虑 RFC 5280iPAddress 的主题备用名称,并且它们必须与给定的 ip 地址完全匹配。证书的其他主题备用名称以及主题字段将被忽略。

【Only RFC 5280 iPAddress subject alternative names are considered, and they must match the given ip address exactly. Other subject alternative names as well as the subject field of the certificate are ignored.】