SafeEvpPKeyHandle.OpenPrivateKeyFromEngine(String, String) Méthode

Définition

Ouvrez une clé privée nommée à l’aide d’un openSSL ENGINEnommé .

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

Paramètres

engineName
String

Nom de la ENGINE demande d’ouverture de clé privée.

keyId
String

Nom de la clé à ouvrir.

Retours

Clé ouverte.

Attributs

Exceptions

engineName ou keyId est null.

engineName ou keyId est la chaîne vide.

la clé n’a pas pu être ouverte via le moteur spécifié.

Remarques

Cette opération échoue si OpenSSL ne peut pas charger correctement le nom ENGINE, ou si le nom ENGINE ne peut pas charger la clé nommée.

Tous ne prennent pas en ENGINEcharge le chargement de clés privées.

La syntaxe pour keyId est déterminée par chaque individu ENGINE.

S’applique à