Language

SafeEvpPKeyHandle.OpenPrivateKeyFromEngine(String, String) メソッド

定義

名前付き OpenSSL ENGINEを使用して、名前付き秘密キーを開きます。

public:
 static System::Security::Cryptography::SafeEvpPKeyHandle ^ OpenPrivateKeyFromEngine(System::String ^ engineName, System::String ^ keyId);
[System.Runtime.Versioning.UnsupportedOSPlatform("android")]
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
[System.Runtime.Versioning.UnsupportedOSPlatform("ios")]
[System.Runtime.Versioning.UnsupportedOSPlatform("tvos")]
[System.Runtime.Versioning.UnsupportedOSPlatform("windows")]
public static System.Security.Cryptography.SafeEvpPKeyHandle OpenPrivateKeyFromEngine(string engineName, string keyId);
[<System.Runtime.Versioning.UnsupportedOSPlatform("android")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("ios")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("tvos")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("windows")>]
static member OpenPrivateKeyFromEngine : string * string -> System.Security.Cryptography.SafeEvpPKeyHandle
Public Shared Function OpenPrivateKeyFromEngine (engineName As String, keyId As String) As SafeEvpPKeyHandle

パラメーター

engineName
String

秘密キーのオープン要求を処理する ENGINE の名前。

keyId
String

開くキーの名前。

返品

開いているキー。

属性

例外

engineName または keyId が null。

engineName または keyId が空の文字列です。

指定した ENGINE を使用してキーを開くことができませんでした。

注釈

OpenSSL が名前付き ENGINEを正常に読み込めない場合、または名前付き ENGINE が名前付きキーを読み込めない場合、この操作は失敗します。

すべての ENGINEが秘密キーの読み込みをサポートしているわけではありません。

keyIdの構文は、個々のENGINEによって決まります。

適用対象