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

要打开的密钥的名称。

返回

打开的键。

属性

例外

engineNamekeyIdnull

engineNamekeyId 为空字符串。

无法通过指定的 ENGINE 打开密钥。

注解

如果 OpenSSL 无法成功加载命名 ENGINE的 ,或者命名的 ENGINE 无法加载命名密钥,则此操作将失败。

ENGINE并非所有 都支持加载公钥,即使是支持加载私钥的公钥。

keyId 语法由每个单独的 ENGINE确定。

适用于