System::Security::Cryptography::X509Certificates::RSACertificateExtensions::GetRSAPublicKey method

RSACertificateExtensions::GetRSAPublicKey method

Gets RSA public key from the certificate.

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

ReturnValue

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

See Also