Associates the certificate with a private key from a PVK file.
[Visual Basic]
Overloads Public Sub AssociateWithPrivateKey( _
ByVal pvkFile As String, _
ByVal password As String, _
ByVal exportable As Boolean _
)
The password can be a null reference (Nothing in Visual Basic) if the private key is not encrypted.
| 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 | Certificate Members | Org.Mentalis.Security.Certificates Namespace | Certificate.AssociateWithPrivateKey Overload List