mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
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>
This commit is contained in:
committed by
Ruben Bridgewater
parent
5a6beb7741
commit
853f0bdf19
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user