Condividi tramite


X509Certificate2Collection.TryExportCertificatePems Metodo

Definizione

Tenta di esportare i certificati X.509 pubblici, codificati come PEM.

public:
 bool TryExportCertificatePems(Span<char> destination, [Runtime::InteropServices::Out] int % charsWritten);
public bool TryExportCertificatePems (Span<char> destination, out int charsWritten);
member this.TryExportCertificatePems : Span<char> * int -> bool
Public Function TryExportCertificatePems (destination As Span(Of Char), ByRef charsWritten As Integer) As Boolean

Parametri

destination
Span<Char>

Buffer per ricevere i certificati con codifica PEM.

charsWritten
Int32

Quando termina, il numero totale di caratteri scritti in destination.

Restituisce

Boolean

true se destination era sufficientemente grande da ricevere le VM codificate; in caso contrario, false.

Eccezioni

Un certificato è danneggiato, in uno stato non valido o non può essere esportato in PEM.

Commenti

A PEM-encoded X.509 certificate collection will contain certificates where each certificate begins with -----BEGIN CERTIFICATE----- and ends with -----END CERTIFICATE-----, with the base64 encoded DER contents of the certificate between the PEM boundaries. Each certificate is separated by a single line-feed character.

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

Si applica a