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

CertificationRequest.Sign Method

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

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.

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