Skip to content

Commit

Permalink
crypto: provide full cert details to checkServerIdentity
Browse files Browse the repository at this point in the history
PR-URL: #17690
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Ben Noordhuis <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
  • Loading branch information
Hannes-Magnusson-CK authored and targos committed Mar 24, 2018
1 parent 26e2938 commit 2331267
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/_tls_wrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -1052,7 +1052,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);
}

Expand Down

0 comments on commit 2331267

Please sign in to comment.