GetRSAPublicKey()

RSACertificateExtensions::GetRSAPublicKey(const SharedPtr<X509Certificate2>&) method

Gets RSA public key from the certificate.

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

Arguments

ParameterTypeDescription
certificateconst SharedPtr<X509Certificate2>&The certificate.

Return Value

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

See Also