SafeEvpPKeyHandle.OpenPrivateKeyFromEngine(String, String) Метод

Определение

Откройте именованный закрытый ключ с помощью 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 — пустая строка.

ключ не удалось открыть с помощью указанного engine.

Комментарии

Эта операция завершится ошибкой, если OpenSSL не удается загрузить именованный ENGINEключ или если не удается загрузить именованный ENGINE ключ.

Не все ENGINEподдерживают загрузку закрытых ключей.

Синтаксис для keyId определяется каждым отдельным ENGINE.

Применяется к