diff options
Diffstat (limited to 'lib/_tls_common.js')
-rw-r--r-- | lib/_tls_common.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/_tls_common.js b/lib/_tls_common.js index 6cd93036c2..ef67d23ac8 100644 --- a/lib/_tls_common.js +++ b/lib/_tls_common.js @@ -100,8 +100,7 @@ exports.createSecureContext = function createSecureContext(options) { var i; var val; - // NOTE: It's important to add CA before the cert to be able to load - // cert's issuer in C++ code. + // Add CA before the cert to be able to load cert's issuer in C++ code. const { ca } = options; if (ca) { if (Array.isArray(ca)) { @@ -132,7 +131,7 @@ exports.createSecureContext = function createSecureContext(options) { } } - // NOTE: It is important to set the key after the cert. + // Set the key after the cert. // `ssl_set_pkey` returns `0` when the key does not match the cert, but // `ssl_set_cert` returns `1` and nullifies the key in the SSL structure // which leads to the crash later on. |