Mentalis.org Security Library documentation

Certificate.CreateFromCerFile Method (String)

Creates a new instance of the Certificate class by opening a certificate file and retrieving the first certificate from it.

[Visual Basic]
Overloads Public Shared Function CreateFromCerFile( _
   ByVal file As String _
) As Certificate
[C#]
public static Certificate CreateFromCerFile(
   string file
);

Parameters

file
The full path to the certificate file to open.

Return Value

One of the certificates in the certificate file.

Exceptions

Exception TypeCondition
ArgumentNullExceptionfile is a null reference (Nothing in Visual Basic).
CertificateExceptionAn error occurs while loading certificates from the specified file.

See Also

Certificate Class | Org.Mentalis.Security.Certificates Namespace | Certificate.CreateFromCerFile Overload List