McheckPrivateKey
Bun

method

crypto.X509Certificate.checkPrivateKey

privateKey: KeyObject
): boolean;

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

@param privateKey

A private key.