System::Security::Cryptography::X509Certificates::DSACertificateExtensions::GetDSAPrivateKey method

DSACertificateExtensions::GetDSAPrivateKey method

Gets DSA private key from the certificate.

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

ReturnValue

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

See Also