RSACertificateExtensions.GetRSAPrivateKey(X509Certificate2) メソッド

定義

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

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

パラメーター

certificate
X509Certificate2

証明書。

戻り値

RSA

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

例外

certificatenullです。

適用対象