Certificate.Associate Method
Namespace: Rebex.Security.Certificates
Assembly: Rebex.Common.dll (version 8.0.9673)
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 asymmetric algorithm such as RSA. |
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 asymmetric algorithm such as RSA. |
| 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. |