Share via


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.

適用於