@@ -2509,24 +2509,26 @@ or it might contain wildcards (e.g., `*.example.com`). Because host name
25092509comparisons are case-insensitive, the returned subject name might also differ
25102510from the given ` name ` in capitalization.
25112511
2512- ### ` x509.checkIP(ip[, options] ) `
2512+ ### ` x509.checkIP(ip) `
25132513
25142514<!-- YAML
25152515added: v15.6.0
2516+ changes:
2517+ - version: REPLACEME
2518+ pr-url: https://github.com/nodejs/node/pull/41571
2519+ description: The `options` argument has been removed since it had no effect.
25162520-->
25172521
25182522* ` ip ` {string}
2519- * ` options ` {Object}
2520- * ` subject ` {string} ` 'always' ` or ` 'never' ` . ** Default:** ` 'always' ` .
2521- * ` wildcards ` {boolean} ** Default:** ` true ` .
2522- * ` partialWildcards ` {boolean} ** Default:** ` true ` .
2523- * ` multiLabelWildcards ` {boolean} ** Default:** ` false ` .
2524- * ` singleLabelSubdomains ` {boolean} ** Default:** ` false ` .
25252523* Returns: {string|undefined} Returns ` ip ` if the certificate matches,
25262524 ` undefined ` if it does not.
25272525
25282526Checks whether the certificate matches the given IP address (IPv4 or IPv6).
25292527
2528+ Only [ RFC 5280] [ ] ` iPAddress ` subject alternative names are considered, and they
2529+ must match the given ` ip ` address exactly. Other subject alternative names as
2530+ well as the subject field of the certificate are ignored.
2531+
25302532### ` x509.checkIssued(otherCert) `
25312533
25322534<!-- YAML
@@ -5942,6 +5944,7 @@ See the [list of SSL OP Flags][] for details.
59425944[ RFC 4055 ] : https://www.rfc-editor.org/rfc/rfc4055.txt
59435945[ RFC 4122 ] : https://www.rfc-editor.org/rfc/rfc4122.txt
59445946[ RFC 5208 ] : https://www.rfc-editor.org/rfc/rfc5208.txt
5947+ [ RFC 5280 ] : https://www.rfc-editor.org/rfc/rfc5280.txt
59455948[ Web Crypto API documentation ] : webcrypto.md
59465949[ `BN_is_prime_ex` ] : https://www.openssl.org/docs/man1.1.1/man3/BN_is_prime_ex.html
59475950[ `Buffer` ] : buffer.md
0 commit comments