From 853f0bdf1908f754a0e7a7486339e79578c2c68b Mon Sep 17 00:00:00 2001 From: Hannes Magnusson Date: Thu, 14 Dec 2017 15:45:44 -0800 Subject: [PATCH] crypto: provide full cert details to checkServerIdentity PR-URL: https://github.com/nodejs/node/pull/17690 Reviewed-By: James M Snell Reviewed-By: Ben Noordhuis Reviewed-By: Ruben Bridgewater --- lib/_tls_wrap.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/_tls_wrap.js b/lib/_tls_wrap.js index fcd447bb590..b3c48b950c6 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); }