Creates a new instance of the Certificate class by opening a PFX file and retrieving the first certificate from it.
[Visual Basic]
Overloads Public Shared Function CreateFromPfxFile( _
ByVal file As String, _
ByVal password As String _
) As Certificate
One of the certificates in the PFX file.
Exception Type | Condition |
---|---|
ArgumentNullException | file or password 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.CreateFromPfxFile Overload List