ECAlgorithm.ExportECPrivateKeyPem 方法

定義

以 ECPrivateKey 格式匯出目前的金鑰,並編碼 PEM。

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

傳回

包含 PEM 編碼 ECPrivateKey 的字串。

例外狀況

無法匯出金鑰。

備註

PEM 編碼的 ECPrivateKey 會以 -----BEGIN EC PRIVATE KEY----- 開頭並以 結尾 -----END EC PRIVATE KEY----- ,並在 PEM 界限之間,使用金鑰的 base64 編碼 DER 內容。

          The PEM is encoded according to the IETF RFC 7468 "strict"
          encoding rules.

適用於