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.

适用于