RSACertificateExtensions.GetRSAPrivateKey(X509Certificate2) メソッド

定義

RSA から X509Certificate2 秘密キーを取得します。Gets the RSA private key from the X509Certificate2.

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);
static member GetRSAPrivateKey : System.Security.Cryptography.X509Certificates.X509Certificate2 -> System.Security.Cryptography.RSA
<Extension()>
Public Function GetRSAPrivateKey (certificate As X509Certificate2) As RSA

パラメーター

certificate
X509Certificate2

証明書。The certificate.

戻り値

RSA

秘密キー、または証明書に RSA 秘密キーがない場合は null です。The private key, or null if the certificate does not have an RSA private key.

例外

certificatenull です。certificate is null.

適用対象