Edit

Share via


MLDsa.ExportPkcs8PrivateKeyPem Method

Definition

Exports the current key in a PEM-encoded representation of the PKCS#8 PrivateKeyInfo format.

public:
 System::String ^ ExportPkcs8PrivateKeyPem();
[System.Diagnostics.CodeAnalysis.Experimental("SYSLIB5006", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public string ExportPkcs8PrivateKeyPem();
public string ExportPkcs8PrivateKeyPem();
[<System.Diagnostics.CodeAnalysis.Experimental("SYSLIB5006", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
member this.ExportPkcs8PrivateKeyPem : unit -> string
member this.ExportPkcs8PrivateKeyPem : unit -> string
Public Function ExportPkcs8PrivateKeyPem () As String

Returns

A string containing the PEM-encoded representation of the PKCS#8 PrivateKeyInfo representation of the public-key portion of this key.

Attributes

Exceptions

This instance has been disposed.

An error occurred while exporting the key.

Applies to