@@ -2542,24 +2542,26 @@ does not contain any DNS names. This behavior is consistent with [RFC 2818][]
2542
2542
If the ` 'subject' ` option is set to ` 'never' ` , the certificate subject is never
2543
2543
considered, even if the certificate contains no subject alternative names.
2544
2544
2545
- ### ` x509.checkIP(ip[, options] ) `
2545
+ ### ` x509.checkIP(ip) `
2546
2546
2547
2547
<!-- YAML
2548
2548
added: 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.
2549
2553
-->
2550
2554
2551
2555
* ` 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 ` .
2558
2556
* Returns: {string|undefined} Returns ` ip ` if the certificate matches,
2559
2557
` undefined ` if it does not.
2560
2558
2561
2559
Checks whether the certificate matches the given IP address (IPv4 or IPv6).
2562
2560
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
+
2563
2565
### ` x509.checkIssued(otherCert) `
2564
2566
2565
2567
<!-- YAML
@@ -5972,6 +5974,7 @@ See the [list of SSL OP Flags][] for details.
5972
5974
[ RFC 4055 ] : https://www.rfc-editor.org/rfc/rfc4055.txt
5973
5975
[ RFC 4122 ] : https://www.rfc-editor.org/rfc/rfc4122.txt
5974
5976
[ RFC 5208 ] : https://www.rfc-editor.org/rfc/rfc5208.txt
5977
+ [ RFC 5280 ] : https://www.rfc-editor.org/rfc/rfc5280.txt
5975
5978
[ Web Crypto API documentation ] : webcrypto.md
5976
5979
[ `BN_is_prime_ex` ] : https://www.openssl.org/docs/man1.1.1/man3/BN_is_prime_ex.html
5977
5980
[ `Buffer` ] : buffer.md
0 commit comments