AsymmetricAlgorithm.ExportSubjectPublicKeyInfoPem 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.
Exporte la partie clé publique de la clé actuelle au format X.509 SubjectPublicKeyInfo, encodée PEM.
public:
System::String ^ ExportSubjectPublicKeyInfoPem();
public string ExportSubjectPublicKeyInfoPem();
member this.ExportSubjectPublicKeyInfoPem : unit -> string
Public Function ExportSubjectPublicKeyInfoPem () As String
Retours
Chaîne contenant le X.509 SubjectPublicKeyInfo codé en PEM.
Exceptions
Une implémentation pour ExportSubjectPublicKeyInfo() ou TryExportSubjectPublicKeyInfo(Span<Byte>, Int32) non a été fournie.
Impossible d’exporter la clé.
Remarques
Un X.509 SubjectPublicKeyInfo codé en PEM commence par -----BEGIN PUBLIC KEY----- et se termine -----END PUBLIC KEY-----par , avec le contenu DER codé en base64 de la clé entre les limites PEM.
The PEM is encoded according to the IETF RFC 7468 "strict"
encoding rules.