From 76f3e8f63bb93a22e16f641859cbc10e9da15b7b 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 PR-URL: https://github.com/nodejs/node/pull/41600 Reviewed-By: Matteo Collina Reviewed-By: Rich Trott Reviewed-By: Filip Skokan --- 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 c4d1860ccb6633..4b1a54326295c7 100644 --- a/doc/api/crypto.md +++ b/doc/api/crypto.md @@ -2472,6 +2472,9 @@ added: v15.6.0