Skip to main content
method X509Certificate.prototype.checkPrivateKey
X509Certificate.prototype.checkPrivateKey(privateKey: KeyObject): boolean
Deprecated

Checks whether the public key for this certificate is consistent with the given private key.

Parameters

privateKey: KeyObject

A private key.

Return Type

boolean
Back to top