Rebex
Products Downloads Buy Support Contact
Show / Hide Table of Contents

Certificate.Associate Method

Namespace: Rebex.Security.Certificates
Assembly: Rebex.Common.dll (version 7.0.9147)

Associate(AsymmetricAlgorithm)

Associates the supplied private key with the certificate to perform operations that need a private key.

Declaration
public void Associate(AsymmetricAlgorithm privateKey)
Parameters
Type Name Description
AsymmetricAlgorithm privateKey

An instance of RSA, DSA, RSACryptoServiceProvider or DSACryptoServiceProvider.

Associate(PrivateKeyInfo)

Associates the supplied private key with the certificate to perform operations that need a private key.

Declaration
public void Associate(PrivateKeyInfo privateKey)
Parameters
Type Name Description
PrivateKeyInfo privateKey

The private key.

Associate(AsymmetricKeyAlgorithm)

Associates the supplied private key with the certificate to perform operations that need a private key.

Declaration
public void Associate(AsymmetricKeyAlgorithm privateKey)
Parameters
Type Name Description
AsymmetricKeyAlgorithm privateKey

The private key.

Associate(AsymmetricAlgorithm, Boolean)

Associates the supplied private key with the certificate to perform operations that need a private key.

Declaration
public void Associate(AsymmetricAlgorithm privateKey, bool permanentBind)
Parameters
Type Name Description
AsymmetricAlgorithm privateKey

An instance of RSA, DSA, RSACryptoServiceProvider or DSACryptoServiceProvider.

Boolean permanentBind

Specifies whether to permanently bind the certificate to the specified CSP. Only supported on Windows.

Associate(PrivateKeyInfo, Boolean)

Associates the supplied private key with the certificate to perform operations that need a private key.

Declaration
public void Associate(PrivateKeyInfo privateKey, bool permanentBind)
Parameters
Type Name Description
PrivateKeyInfo privateKey

The private key.

Boolean permanentBind

Specifies whether to permanently bind the certificate to the specified CSP. Only supported on Windows.

Associate(AsymmetricKeyAlgorithm, Boolean)

Associates the supplied private key with the certificate to perform operations that need a private key.

Declaration
public void Associate(AsymmetricKeyAlgorithm privateKey, bool permanentBind)
Parameters
Type Name Description
AsymmetricKeyAlgorithm privateKey

The private key.

Boolean permanentBind

Specifies whether to permanently bind the certificate to the specified CSP. Only supported on Windows.

In This Article
  • Associate(AsymmetricAlgorithm)
  • Associate(PrivateKeyInfo)
  • Associate(AsymmetricKeyAlgorithm)
  • Associate(AsymmetricAlgorithm, Boolean)
  • Associate(PrivateKeyInfo, Boolean)
  • Associate(AsymmetricKeyAlgorithm, Boolean)
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies