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
One of the certificates in the certificate file.
| Exception Type | Condition | 
|---|---|
| ArgumentNullException | file is a null reference (Nothing in Visual Basic). | 
| CertificateException | An error occurs while loading certificates from the specified file. | 
Certificate Class | Certificate Members | Org.Mentalis.Security.Certificates Namespace | Certificate.CreateFromCerFile Overload List