You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a certificate I would like to verify against the root nodejs store. The certificate is in PEM format.
I attempted to use the built in nodejs function tls.checkServerIdentity() after I used the x509 parser, but I get the following error:
Error [ERR_TLS_CERT_ALTNAME_INVALID]: Hostname/IP does not match certificate's altnames: Host: messageverificationcerts.sandbox.paypal.com. is not cert's CN: undefined
Source code:
const x509 = require('@peculiar/x509');
const cert = new x509.X509Certificate(relevantCert);
//console.log(util.inspect(cert,false,6)) // appears to output a correct cert
const tlsResult = tls.checkServerIdentity('messageverificationcerts.sandbox.paypal.com', cert)
console.log(tlsResult);
The text was updated successfully, but these errors were encountered:
I have a certificate I would like to verify against the root nodejs store. The certificate is in PEM format.
I attempted to use the built in nodejs function
tls.checkServerIdentity()
after I used the x509 parser, but I get the following error:Source code:
The text was updated successfully, but these errors were encountered: