File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -2485,6 +2485,17 @@ added: v15.6.0
2485
2485
2486
2486
Checks whether the certificate matches the given email address.
2487
2487
2488
+ If the ` 'subject' ` option is set to ` 'always' ` and if the subject alternative
2489
+ name extension either does not exist or does not contain a matching email
2490
+ address, the certificate subject is considered.
2491
+
2492
+ If the ` 'subject' ` option is set to ` 'default' ` , the certificate subject is only
2493
+ considered if the subject alternative name extension either does not exist or
2494
+ does not contain any email addresses.
2495
+
2496
+ If the ` 'subject' ` option is set to ` 'never' ` , the certificate subject is never
2497
+ considered, even if the certificate contains no subject alternative names.
2498
+
2488
2499
### ` x509.checkHost(name[, options]) `
2489
2500
2490
2501
<!-- YAML
You can’t perform that action at this time.
0 commit comments