AsymmetricAlgorithm.ExportPkcs8PrivateKeyPem 方法

定义

导出 PKCS#8 PrivateKeyInfo 格式(PEM 编码)的当前密钥。

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

返回

包含 PEM 编码 PKCS#8 PrivateKeyInfo 的字符串。

例外

未能导出密钥。

注解

PEM 编码的 PKCS#8 PrivateKeyInfo 以 开头 -----BEGIN PRIVATE KEY----- ,以 结尾 -----END PRIVATE KEY-----,PEM 边界之间键的 base64 编码 DER 内容。

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

适用于