Visitar URL original
crypto: improve argument validation and error messages by panva · Pull Request #64852 · nodejs/node · GitHub
Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
crypto: reuse X509 issuer result
Avoid a second native call when reading the issuer certificate.

Signed-off-by: Filip Skokan <panva.ip@gmail.com>
  • Loading branch information
panva committed Jul 30, 2026
commit f5df7253fe821d3bb0c4272002789a3f39aa7e9e
2 changes: 1 addition & 1 deletion lib/internal/crypto/x509.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ class X509Certificate {
if (value === undefined) {
const cert = this[kHandle].getIssuerCert();
if (cert)
value = new InternalX509Certificate(this[kHandle].getIssuerCert());
value = new InternalX509Certificate(cert);
this[kInternalState].set('issuerCertificate', value);
}
return value;
Expand Down