次の方法で共有


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 が名前付き を正常に読み込めない場合、または名前付きENGINEENGINEキーを読み込めない場合、この操作は失敗します。

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

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

適用対象