語言

RSA.ExportRSAPublicKeyPem 方法

定義

匯出目前金鑰的公鑰部分,格式為 PKCS#1 RSAPublicKey 格式,PEM 編碼。

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

傳回

一個包含 PEM 編碼的 PKCS#1 RSAPublicKey 的字串。

例外狀況

該金鑰無法匯出。

備註

一個以 PEM 編碼的 PKCS#1 RSAPublicKey 會以 開始 -----BEGIN RSA PUBLIC KEY----- ,結束於 -----END RSA PUBLIC KEY-----,鍵中 在 PEM 邊界之間以 base64 編碼的 DER 內容。

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

適用於