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:
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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user