Creates a new instance of the Certificate class by opening a PFX file and retrieving the first certificate from it.
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 | Org.Mentalis.Security.Certificates Namespace | Certificate.CreateFromPfxFile Overload List