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.

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also