SafeEvpPKeyHandle.OpenPrivateKeyFromEngine(String, String) Método

Definição

Abra uma chave privada nomeada usando um chamado 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

Parâmetros

engineName
String

O nome do ENGINE para processar a solicitação de abertura de chave privada.

keyId
String

O nome da chave a ser aberta.

Retornos

A chave aberta.

Atributos

Exceções

engineName ou keyId é null.

engineName ou keyId é a cadeia de caracteres vazia.

a chave não pôde ser aberta por meio do ENGINE especificado.

Comentários

Essa operação falhará se o OpenSSL não puder carregar com êxito o nomeado ENGINEou se o nomeado ENGINE não puder carregar a chave nomeada.

Nem todos dão ENGINEsuporte ao carregamento de chaves privadas.

A sintaxe de keyId é determinada por cada indivíduo ENGINE.

Aplica-se a