Skip to content

Commit

Permalink
doc: fix backticks around 'default'
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
2 people authored and danielleadams committed Feb 27, 2022
1 parent da93037 commit 31af4f7
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions doc/api/crypto.md
Original file line number Diff line number Diff line change
Expand Up @@ -2485,6 +2485,17 @@ added: v15.6.0

Checks whether the certificate matches the given email address.

If the `'subject'` option is set to `'always'` and if the subject alternative
name extension either does not exist or does not contain a matching email
address, the certificate subject is considered.

If the `'subject'` option is set to `'default'`, the certificate subject is only
considered if the subject alternative name extension either does not exist or
does not contain any email addresses.

If the `'subject'` option is set to `'never'`, the certificate subject is never
considered, even if the certificate contains no subject alternative names.

### `x509.checkHost(name[, options])`

<!-- YAML
Expand Down

0 comments on commit 31af4f7

Please sign in to comment.