System::Security::Cryptography::X509Certificates::RSACertificateExtensions::GetRSAPrivateKey method

RSACertificateExtensions::GetRSAPrivateKey method

Gets RSA private key from the certificate.

static SharedPtr<RSA> System::Security::Cryptography::X509Certificates::RSACertificateExtensions::GetRSAPrivateKey(const SharedPtr<X509Certificate2> &certificate)
ParameterTypeDescription
certificateconst SharedPtr<X509Certificate2>&The certificate.

ReturnValue

RSA private key or nullptr if the certificate doesn’t have RSA private key.

See Also