Skip to content

Commit 0a5038d

Browse files
tniessenVoltrexKeyva
authored andcommitted
doc: fix backticks around 'default'
Refs: #41569 PR-URL: #41613 Co-authored-by: Mohammed Keyvanzadeh <[email protected]> Reviewed-By: Mohammed Keyvanzadeh <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Filip Skokan <[email protected]>
1 parent efb461b commit 0a5038d

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

doc/api/crypto.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2485,6 +2485,17 @@ added: v15.6.0
24852485

24862486
Checks whether the certificate matches the given email address.
24872487

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+
24882499
### `x509.checkHost(name[, options])`
24892500

24902501
<!-- YAML

0 commit comments

Comments
 (0)