Skip to content

Commit a9c48a8

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/_tls_wrap.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1055,7 +1055,7 @@ function onConnectSecure() {
10551055
options.host ||
10561056
(options.socket && options.socket._host) ||
10571057
'localhost';
1058-
const cert = this.getPeerCertificate();
1058+
const cert = this.getPeerCertificate(true);
10591059
verifyError = options.checkServerIdentity(hostname, cert);
10601060
}
10611061

0 commit comments

Comments
 (0)