From 152bb7b6fd9bc522f26979f0104da4f78a52e4b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20Nie=C3=9Fen?= Date: Thu, 20 Jan 2022 13:30:18 +0100 Subject: [PATCH] doc: fix backticks around 'default' Refs: https://github.com/nodejs/node/pull/41569 PR-URL: https://github.com/nodejs/node/pull/41613 Co-authored-by: Mohammed Keyvanzadeh Reviewed-By: Mohammed Keyvanzadeh Reviewed-By: Richard Lau Reviewed-By: Filip Skokan --- doc/api/crypto.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/doc/api/crypto.md b/doc/api/crypto.md index 721f74a6e1d5ab..029eaa56fcaaf7 100644 --- a/doc/api/crypto.md +++ b/doc/api/crypto.md @@ -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])`