X509Certificate2.CopyWithPrivateKey(ECDiffieHellman) 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.
Combine une clé privée avec la clé publique d’un ECDiffieHellman certificat pour générer un nouveau certificat ECDiffieHellman.
public:
System::Security::Cryptography::X509Certificates::X509Certificate2 ^ CopyWithPrivateKey(System::Security::Cryptography::ECDiffieHellman ^ privateKey);
public System.Security.Cryptography.X509Certificates.X509Certificate2 CopyWithPrivateKey (System.Security.Cryptography.ECDiffieHellman privateKey);
member this.CopyWithPrivateKey : System.Security.Cryptography.ECDiffieHellman -> System.Security.Cryptography.X509Certificates.X509Certificate2
Public Function CopyWithPrivateKey (privateKey As ECDiffieHellman) As X509Certificate2
Paramètres
- privateKey
- ECDiffieHellman
Clé ECDiffieHellman privée.
Retours
Nouveau certificat ECDiffieHellman avec la HasPrivateKey propriété définie sur true
.
Le certificat actuel n’est pas modifié.
Exceptions
privateKey
a la valeur null
.
Le certificat est déjà associé à une clé privée.
Le certificat n’a pas de clé publique.
- ou -
La clé privée spécifiée ne correspond pas à la clé publique de ce certificat.
S’applique à
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour