RSA.ExportRSAPrivateKeyPem 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
导出 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 以 PEM 边界之间的密钥的 base64 编码 DER 内容开头 -----BEGIN RSA PRIVATE KEY----- 和结尾 -----END RSA PRIVATE KEY-----。
The PEM is encoded according to the IETF RFC 7468 "strict"
encoding rules.