GetDSAPrivateKey()

DSACertificateExtensions::GetDSAPrivateKey(const SharedPtr<X509Certificate2>&) method

Gets DSA private key from the certificate.

static SharedPtr<DSA> System::Security::Cryptography::X509Certificates::DSACertificateExtensions::GetDSAPrivateKey(const SharedPtr<X509Certificate2> &certificate)

Arguments

ParameterTypeDescription
certificateconst SharedPtr<X509Certificate2>&The certificate.

Return Value

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

See Also