次の方法で共有


DSACertificateExtensions.GetDSAPrivateKey(X509Certificate2) メソッド

定義

X509Certificate2 から DSA 秘密キーを取得します。

public:
[System::Runtime::CompilerServices::Extension]
 static System::Security::Cryptography::DSA ^ GetDSAPrivateKey(System::Security::Cryptography::X509Certificates::X509Certificate2 ^ certificate);
public static System.Security.Cryptography.DSA? GetDSAPrivateKey (this System.Security.Cryptography.X509Certificates.X509Certificate2 certificate);
public static System.Security.Cryptography.DSA GetDSAPrivateKey (this System.Security.Cryptography.X509Certificates.X509Certificate2 certificate);
static member GetDSAPrivateKey : System.Security.Cryptography.X509Certificates.X509Certificate2 -> System.Security.Cryptography.DSA
<Extension()>
Public Function GetDSAPrivateKey (certificate As X509Certificate2) As DSA

パラメーター

certificate
X509Certificate2

証明書。

戻り値

DSA

秘密キー、または証明書に DSA 秘密キーがない場合は null です。

例外

certificatenullです。

適用対象