@@ -2472,6 +2472,9 @@ added: v15.6.0
2472
2472
<!-- YAML
2473
2473
added: v15.6.0
2474
2474
changes:
2475
+ - version: REPLACEME
2476
+ pr-url: https://github.com/nodejs/node/pull/41600
2477
+ description: The subject option now defaults to `'default'`.
2475
2478
- version: REPLACEME
2476
2479
pr-url: https://github.com/nodejs/node/pull/41569
2477
2480
description: The subject option can now be set to `'default'`.
@@ -2480,7 +2483,7 @@ changes:
2480
2483
* ` email ` {string}
2481
2484
* ` options ` {Object}
2482
2485
* ` subject ` {string} ` 'default' ` , ` 'always' ` , or ` 'never' ` .
2483
- ** Default:** ` 'always ' ` .
2486
+ ** Default:** ` 'default ' ` .
2484
2487
* ` wildcards ` {boolean} ** Default:** ` true ` .
2485
2488
* ` partialWildcards ` {boolean} ** Default:** ` true ` .
2486
2489
* ` multiLabelWildcards ` {boolean} ** Default:** ` false ` .
@@ -2490,14 +2493,14 @@ changes:
2490
2493
2491
2494
Checks whether the certificate matches the given email address.
2492
2495
2496
+ If the ` 'subject' ` option is undefined or set to ` 'default ` ', the certificate
2497
+ subject is only considered if the subject alternative name extension either does
2498
+ not exist or does not contain any email addresses.
2499
+
2493
2500
If the ` 'subject' ` option is set to ` 'always' ` and if the subject alternative
2494
2501
name extension either does not exist or does not contain a matching email
2495
2502
address, the certificate subject is considered.
2496
2503
2497
- If the ` 'subject' ` option is set to ` 'default ` ', the certificate subject is only
2498
- considered if the subject alternative name extension either does not exist or
2499
- does not contain any email addresses.
2500
-
2501
2504
If the ` 'subject' ` option is set to ` 'never' ` , the certificate subject is never
2502
2505
considered, even if the certificate contains no subject alternative names.
2503
2506
@@ -2506,6 +2509,9 @@ considered, even if the certificate contains no subject alternative names.
2506
2509
<!-- YAML
2507
2510
added: v15.6.0
2508
2511
changes:
2512
+ - version: REPLACEME
2513
+ pr-url: https://github.com/nodejs/node/pull/41600
2514
+ description: The subject option now defaults to `'default'`.
2509
2515
- version: REPLACEME
2510
2516
pr-url: https://github.com/nodejs/node/pull/41569
2511
2517
description: The subject option can now be set to `'default'`.
@@ -2514,7 +2520,7 @@ changes:
2514
2520
* ` name ` {string}
2515
2521
* ` options ` {Object}
2516
2522
* ` subject ` {string} ` 'default' ` , ` 'always' ` , or ` 'never' ` .
2517
- ** Default:** ` 'always ' ` .
2523
+ ** Default:** ` 'default ' ` .
2518
2524
* ` wildcards ` {boolean} ** Default:** ` true ` .
2519
2525
* ` partialWildcards ` {boolean} ** Default:** ` true ` .
2520
2526
* ` multiLabelWildcards ` {boolean} ** Default:** ` false ` .
@@ -2530,15 +2536,15 @@ or it might contain wildcards (e.g., `*.example.com`). Because host name
2530
2536
comparisons are case-insensitive, the returned subject name might also differ
2531
2537
from the given ` name ` in capitalization.
2532
2538
2539
+ If the ` 'subject' ` option is undefined or set to ` 'default' ` , the certificate
2540
+ subject is only considered if the subject alternative name extension either does
2541
+ not exist or does not contain any DNS names. This behavior is consistent with
2542
+ [ RFC 2818] [ ] ("HTTP Over TLS").
2543
+
2533
2544
If the ` 'subject' ` option is set to ` 'always' ` and if the subject alternative
2534
2545
name extension either does not exist or does not contain a matching DNS name,
2535
2546
the certificate subject is considered.
2536
2547
2537
- If the ` 'subject' ` option is set to ` 'default' ` , the certificate subject is only
2538
- considered if the subject alternative name extension either does not exist or
2539
- does not contain any DNS names. This behavior is consistent with [ RFC 2818] [ ]
2540
- ("HTTP Over TLS").
2541
-
2542
2548
If the ` 'subject' ` option is set to ` 'never' ` , the certificate subject is never
2543
2549
considered, even if the certificate contains no subject alternative names.
2544
2550
0 commit comments