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 Byte(), _
ByVal password As String, _
ByVal exportable As Boolean _
) 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 bytes. | 
Certificate Class | Certificate Members | Org.Mentalis.Security.Certificates Namespace | Certificate.CreateFromPfxFile Overload List