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.

适用于