diff --git a/lib/internal/crypto/x509.js b/lib/internal/crypto/x509.js index cd5b5457e3c..a75425ffcac 100644 --- a/lib/internal/crypto/x509.js +++ b/lib/internal/crypto/x509.js @@ -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;