CertificationRequest.Sign Method
Namespace: Rebex.Security.Cryptography.Pkcs
Assembly: Rebex.Common.dll (version 7.0.9119)
Sign(PrivateKeyInfo, SignatureHashAlgorithm)
Signs the certification request using a private key corresponding to the request's public key.
Declaration
public void Sign(PrivateKeyInfo privateKey, SignatureHashAlgorithm signatureHashAlgorithm)
Parameters
Type | Name | Description |
---|---|---|
PrivateKeyInfo | privateKey | An instance of PrivateKeyInfo. |
SignatureHashAlgorithm | signatureHashAlgorithm | Hash algorithm to use for the signature. |
Sign(AsymmetricKeyAlgorithm, SignatureHashAlgorithm)
Signs the certification request using a private key corresponding to the request's public key.
Declaration
public void Sign(AsymmetricKeyAlgorithm algorithm, SignatureHashAlgorithm signatureHashAlgorithm)
Parameters
Type | Name | Description |
---|---|---|
AsymmetricKeyAlgorithm | algorithm | An instance of AsymmetricKeyAlgorithm representing the private key. |
SignatureHashAlgorithm | signatureHashAlgorithm | Hash algorithm to use for the signature. |
Sign(AsymmetricAlgorithm, SignatureHashAlgorithm)
Signs the certification request using a private key corresponding to the request's public key.
Declaration
public void Sign(AsymmetricAlgorithm algorithm, SignatureHashAlgorithm signatureHashAlgorithm)
Parameters
Type | Name | Description |
---|---|---|
AsymmetricAlgorithm | algorithm | An instance of asymmetric algorithm such as RSACryptoServiceProvider, DSACryptoServiceProvider, RSAManaged or DSAManaged. |
SignatureHashAlgorithm | signatureHashAlgorithm | Hash algorithm to use for the signature. |