Skip to content

Commit 2331267

Browse files
Hannes-Magnusson-CKtargos
authored andcommitted
crypto: provide full cert details to checkServerIdentity
PR-URL: #17690 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
1 parent 26e2938 commit 2331267

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/_tls_wrap.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1052,7 +1052,7 @@ function onConnectSecure() {
10521052
options.host ||
10531053
(options.socket && options.socket._host) ||
10541054
'localhost';
1055-
const cert = this.getPeerCertificate();
1055+
const cert = this.getPeerCertificate(true);
10561056
verifyError = options.checkServerIdentity(hostname, cert);
10571057
}
10581058

0 commit comments

Comments
 (0)