Certificate.Associate Method
Namespace: Rebex.Security.Certificates
Assembly: Rebex.Common.dll (version 7.0.9083)
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. |