From e6ba94596481e033147c42f10e99352a1876db6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20Nie=C3=9Fen?= Date: Wed, 19 Jan 2022 19:05:53 +0000 Subject: [PATCH] crypto: change default check(Host|Email) behavior This changes the default behavior of the X509Certificate functions checkHost and checkEmail to match the default behavior of OpenSSL's X509_check_host and X509_check_email functions, respectively, which is also what RFC 2818 mandates for HTTPS. Refs: https://github.com/nodejs/node/pull/36804 Refs: https://github.com/nodejs/node/pull/41569 --- doc/api/crypto.md | 28 +++++++++++++++++----------- lib/internal/crypto/x509.js | 3 +-- test/parallel/test-x509-escaping.js | 2 +- 3 files changed, 19 insertions(+), 14 deletions(-) diff --git a/doc/api/crypto.md b/doc/api/crypto.md index 4d9493ac5dee5c..75d32fb86f5632 100644 --- a/doc/api/crypto.md +++ b/doc/api/crypto.md @@ -2472,6 +2472,9 @@ added: v15.6.0