Mentalis.org Security Library documentation

Certificate.ToCerFile Method 

Saves the Certificate as an encoded file.

[Visual Basic]
Public Sub ToCerFile( _
   ByVal filename As String _
)
[C#]
public void ToCerFile(
   string filename
);

Parameters

filename
The file where to store the certificate.

Remarks

If the specified file already exists, this method will throw an exception.

Exceptions

Exception TypeCondition
ArgumentNullExceptionfilename is a null reference (Nothing in Visual Basic).
IOExceptionAn error occurs while writing the data.

See Also

Certificate Class | Certificate Members | Org.Mentalis.Security.Certificates Namespace