Share via


X509Certificate2Collection.ExportCertificatePems Méthode

Définition

Exporte les certificats X.509 publics, encodés au format PEM.

public:
 System::String ^ ExportCertificatePems();
public string ExportCertificatePems ();
member this.ExportCertificatePems : unit -> string
Public Function ExportCertificatePems () As String

Retours

Encodage PEM des certificats.

Exceptions

Un certificat est endommagé, dans un état non valide ou n’a pas pu être exporté vers PEM.

La taille combinée de l’encodage de tous les certificats dépasse Int32.MaxValue.

Remarques

Une collection de certificats X.509 codés en PEM contient des certificats où chaque certificat commence par -----BEGIN CERTIFICATE----- et se termine par -----END CERTIFICATE-----, avec le contenu DER codé en base64 du certificat entre les limites PEM. Chaque certificat est séparé par un seul caractère de flux de ligne.

          Certificates are encoded according to the IETF RFC 7468 "strict" encoding rules.

S’applique à