method X509Certificate.prototype.checkIP
Jump to headingX509Certificate.prototype.checkIP(ip: string): string | undefinedChecks whether the certificate matches the given IP address (IPv4 or IPv6).
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.
Parameters Jump to heading
Jump to headingip: stringReturn Type Jump to heading
string | undefinedReturns ip if the certificate matches, undefined if it does not.