Saves the certificate's private key to the supplied file.

Namespace:  Rebex.Security.Certificates
Assembly:  Rebex.Common (in Rebex.Common.dll)

Syntax

Visual Basic
Public Sub SavePrivateKey ( _
	fileName As String, _
	password As String, _
	format As PrivateKeyFormat, _
	silent As Boolean _
)
C#
public void SavePrivateKey(
	string fileName,
	string password,
	PrivateKeyFormat format,
	bool silent
)

Parameters

fileName
Type: System..::..String
Path to the file to save the certificate to. If the file exists, it is overwritten.
password
Type: System..::..String
Private key password.
format
Type: Rebex.Security.Cryptography.Pkcs..::..PrivateKeyFormat
Private key file format.
silent
Type: System..::..Boolean
If set to true, the cryptographic provider should not display any user interface (UI) when exporting private key parameters.

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also