[]
function certMatchesPrivateKey(
certPEM,
privateKeyPEM,
passphrase?): boolean;
Checks whether the public key inside an X.509 certificate matches a private key.
string
PEM-encoded X.509 certificate.
string
PEM-encoded private key (PKCS#1, PKCS#8, or SEC1).
string
Passphrase, if the private key is encrypted.
boolean
true if the cert's public key and the private key are a pair.