SafeEvpPKeyHandle.OpenPrivateKeyFromEngine(String, String) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
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 du ENGINE pour traiter la 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 nommé ENGINEou si le nommé ENGINE ne peut pas charger la clé nommée.
Tous ne ENGINEprennent pas en charge le chargement de clés privées.
La syntaxe de keyId est déterminée par chaque individu ENGINE.