Saves the certificate to the supplied file in specified format.

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

Syntax

Visual Basic
Public Sub Save ( _
	fileName As String, _
	format As CertificateFormat, _
	password As String _
)
C#
public void Save(
	string fileName,
	CertificateFormat format,
	string password
)

Parameters

fileName
Type: System..::..String
Path to the file to save the certificate to. If the file exists, it is overwritten.
format
Type: Rebex.Security.Certificates..::..CertificateFormat
Certificate format.
password
Type: System..::..String
Password (only used by PFX/P12 format).

Remarks

On .NET Compact Framework, this is only supported in Windows CE 5.0 or later.

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also