AsymmetricAlgorithm.ExportPkcs8PrivateKeyPem Méthode

Définition

Exporte la clé actuelle au format PKCS#8 PrivateKeyInfo, encodée PEM.

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

Retours

Chaîne contenant le code PKCS#8 PrivateKeyInfo encodé au format PEM.

Exceptions

Impossible d’exporter la clé.

Remarques

Une PKCS#8 PrivateKeyInfo encodée par PEM commence par -----BEGIN PRIVATE KEY----- et se termine -----END PRIVATE 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.

S’applique à