Creates a new certificate store from a certificate file.
[Visual Basic]
Public Shared Function CreateFromCerFile( _
ByVal file As String _
) As CertificateStore
A CertificateStore instance.
The provider opens the file and first attempts to read the file as a serialized store, then as a PKCS #7 signed message, and finally as a single encoded certificate.
Exception Type | Condition |
---|---|
ArgumentNullException | file is a null reference (Nothing in Visual Basic). |
CertificateException | An error occurs while loading the certificate. |
CertificateStore Class | CertificateStore Members | Org.Mentalis.Security.Certificates Namespace