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

定義

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

public:
 static System::Security::Cryptography::SafeEvpPKeyHandle ^ OpenPublicKeyFromEngine(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 OpenPublicKeyFromEngine(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 OpenPublicKeyFromEngine : string * string -> System.Security.Cryptography.SafeEvpPKeyHandle
Public Shared Function OpenPublicKeyFromEngine (engineName As String, keyId As String) As SafeEvpPKeyHandle

パラメーター

engineName
String

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

keyId
String

開くキーの名前。

返品

開いているキー。

属性

例外

engineName または keyIdnull

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

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

注釈

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

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

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

適用対象