Associates the supplied private key with the certificate to perform operations that need a private key.
Namespace:
Rebex.Security.Certificates
Assembly:
Rebex.Common (in Rebex.Common.dll)
Syntax
| Visual Basic |
|---|
Public Sub Associate ( _ privateKey As AsymmetricKeyAlgorithm, _ permanentBind As Boolean _ ) |
| C# |
|---|
public void Associate( AsymmetricKeyAlgorithm privateKey, bool permanentBind ) |
Parameters
- privateKey
- Type: Rebex.Security.Cryptography..::..AsymmetricKeyAlgorithm
The private key.
- permanentBind
- Type: System..::..Boolean
Specifies whether to permanently bind the certificate to the specified CSP.