Associates the certificate with a private key from a PVK file.
The password can be a null reference (Nothing in Visual Basic) if the private key is not encrypted.
The private key will not be exportable.
Exception Type | Condition |
---|---|
ArgumentNullException | The PVK file is encrypted and password is a null reference (Nothing in Visual Basic). |
FileNotFoundException | The specified file could not be found. |
CertificateException | An error occurs while importing the private key. |
Certificate Class | Org.Mentalis.Security.Certificates Namespace | Certificate.AssociateWithPrivateKey Overload List