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

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

Syntax

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

Parameters

stream
Type: System.IO..::..Stream
Stream to save the private key to.
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