ECAlgorithm.ExportECPrivateKeyPem 方法

定义

导出 ECPrivateKey 格式的当前密钥(已编码 PEM)。

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

返回

包含 PEM 编码的 ECPrivateKey 的字符串。

例外

无法导出密钥。

注解

PEM 编码的 ECPrivateKey 以 PEM 边界之间的密钥 base64 编码 DER 内容开头 -----BEGIN EC PRIVATE KEY----- 和结尾 -----END EC PRIVATE KEY-----

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

适用于