語言

RSA.ExportRSAPrivateKeyPem 方法

定義

匯出目前的金鑰,格式為 PKCS#1 RSAPrivateKey 格式,PEM 編碼。

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

傳回

包含 PEM 編碼的 PKCS#1 RSAPrivateKey 的字串。

例外狀況

該金鑰無法匯出。

備註

一個 PEM 編碼的 PKCS#1 RSAPrivateKey 將以 開始 -----BEGIN RSA PRIVATE KEY----- 並以 結尾 -----END RSA PRIVATE KEY-----,且 PEM 邊界間的 base64 編碼 DER 內容為 。

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

適用於