@@ -2542,24 +2542,26 @@ does not contain any DNS names. This behavior is consistent with [RFC 2818][]
25422542If the ` 'subject' ` option is set to ` 'never' ` , the certificate subject is never
25432543considered, even if the certificate contains no subject alternative names.
25442544
2545- ### ` x509.checkIP(ip[, options] ) `
2545+ ### ` x509.checkIP(ip) `
25462546
25472547<!-- YAML
25482548added: v15.6.0
2549+ changes:
2550+ - version: REPLACEME
2551+ pr-url: https://github.com/nodejs/node/pull/41571
2552+ description: The `options` argument has been removed since it had no effect.
25492553-->
25502554
25512555* ` ip ` {string}
2552- * ` options ` {Object}
2553- * ` subject ` {string} ` 'always' ` or ` 'never' ` . ** Default:** ` 'always' ` .
2554- * ` wildcards ` {boolean} ** Default:** ` true ` .
2555- * ` partialWildcards ` {boolean} ** Default:** ` true ` .
2556- * ` multiLabelWildcards ` {boolean} ** Default:** ` false ` .
2557- * ` singleLabelSubdomains ` {boolean} ** Default:** ` false ` .
25582556* Returns: {string|undefined} Returns ` ip ` if the certificate matches,
25592557 ` undefined ` if it does not.
25602558
25612559Checks whether the certificate matches the given IP address (IPv4 or IPv6).
25622560
2561+ Only [ RFC 5280] [ ] ` iPAddress ` subject alternative names are considered, and they
2562+ must match the given ` ip ` address exactly. Other subject alternative names as
2563+ well as the subject field of the certificate are ignored.
2564+
25632565### ` x509.checkIssued(otherCert) `
25642566
25652567<!-- YAML
@@ -5976,6 +5978,7 @@ See the [list of SSL OP Flags][] for details.
59765978[ RFC 4055 ] : https://www.rfc-editor.org/rfc/rfc4055.txt
59775979[ RFC 4122 ] : https://www.rfc-editor.org/rfc/rfc4122.txt
59785980[ RFC 5208 ] : https://www.rfc-editor.org/rfc/rfc5208.txt
5981+ [ RFC 5280 ] : https://www.rfc-editor.org/rfc/rfc5280.txt
59795982[ Web Crypto API documentation ] : webcrypto.md
59805983[ `BN_is_prime_ex` ] : https://www.openssl.org/docs/man1.1.1/man3/BN_is_prime_ex.html
59815984[ `Buffer` ] : buffer.md
0 commit comments