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の によって決定されます。

適用対象