summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorHannes Magnusson <hannes.magnusson@creditkarma.com>2017-12-14 15:45:44 -0800
committerRuben Bridgewater <ruben@bridgewater.de>2018-02-22 11:22:04 +0100
commit853f0bdf1908f754a0e7a7486339e79578c2c68b (patch)
tree841a62a76c5a0d449d855d1066ba6b48d44fbd3d /lib
parent5a6beb774128a890830d3dc7b742929dc539418e (diff)
downloadandroid-node-v8-853f0bdf1908f754a0e7a7486339e79578c2c68b.tar.gz
android-node-v8-853f0bdf1908f754a0e7a7486339e79578c2c68b.tar.bz2
android-node-v8-853f0bdf1908f754a0e7a7486339e79578c2c68b.zip
crypto: provide full cert details to checkServerIdentity
PR-URL: https://github.com/nodejs/node/pull/17690 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Diffstat (limited to 'lib')
-rw-r--r--lib/_tls_wrap.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/_tls_wrap.js b/lib/_tls_wrap.js
index fcd447bb59..b3c48b950c 100644
--- a/lib/_tls_wrap.js
+++ b/lib/_tls_wrap.js
@@ -1055,7 +1055,7 @@ function onConnectSecure() {
options.host ||
(options.socket && options.socket._host) ||
'localhost';
- const cert = this.getPeerCertificate();
+ const cert = this.getPeerCertificate(true);
verifyError = options.checkServerIdentity(hostname, cert);
}