Certificate.Bind Method
Namespace: Rebex.Security.Certificates
Assembly: Rebex.Common.dll (version 7.0.9083)
Bind(AsymmetricAlgorithm, CertificateKeyParameters)
Permanently binds the supplied private key with the certificate. Only supported on Windows.
Declaration
public void Bind(AsymmetricAlgorithm privateKey, CertificateKeyParameters parameters = null)
Parameters
Type | Name | Description |
---|---|---|
AsymmetricAlgorithm | privateKey | An instance of RSA, DSA, RSACryptoServiceProvider or DSACryptoServiceProvider. |
CertificateKeyParameters | parameters | Parameters for private key storage. |
Bind(PrivateKeyInfo, CertificateKeyParameters)
Permanently binds the supplied private key with the certificate. Only supported on Windows.
Declaration
public void Bind(PrivateKeyInfo privateKey, CertificateKeyParameters parameters = null)
Parameters
Type | Name | Description |
---|---|---|
PrivateKeyInfo | privateKey | The private key. |
CertificateKeyParameters | parameters | Parameters for private key storage. |
Bind(AsymmetricKeyAlgorithm, CertificateKeyParameters)
Permanently binds the supplied private key with the certificate. Only supported on Windows.
Declaration
public void Bind(AsymmetricKeyAlgorithm privateKey, CertificateKeyParameters parameters = null)
Parameters
Type | Name | Description |
---|---|---|
AsymmetricKeyAlgorithm | privateKey | The private key. |
CertificateKeyParameters | parameters | Parameters for private key storage. |