method X509Certificate.prototype.checkPrivateKeyX509Certificate.prototype.checkPrivateKey(privateKey: KeyObject): booleanDeprecatedChecks whether the public key for this certificate is consistent with the given private key. ParametersprivateKey: KeyObjectA private key. Return Typeboolean