SafeEvpPKeyHandle.OpenPrivateKeyFromEngine(String, String) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
使用命名的 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 是空字串。
該金鑰無法透過指定的引擎開啟。
備註
若 OpenSSL 無法成功載入命名 ENGINE金鑰,或該命名 ENGINE 者無法載入命名金鑰,此操作將失敗。
並非所有 ENGINE軟體都支援載入私鑰。
的 keyId 語法由每個個體 ENGINE決定。