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 AsymmetricAlgorithm, _ permanentBind As Boolean _ ) |
C# |
---|
public void Associate( AsymmetricAlgorithm privateKey, bool permanentBind ) |
Parameters
- privateKey
- Type: System.Security.Cryptography..::..AsymmetricAlgorithm
An instance of RSA, DSA, RSACryptoServiceProvider or DSACryptoServiceProvider.
- permanentBind
- Type: System..::..Boolean
Specifies whether to permanently bind the certificate to the specified CSP.