Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

Pkcs7Signer(X509Certificate2) Constructor

Initializes a new instance of the Pkcs7Signer class with specified settings.

Namespace: DevExpress.Pdf

Assembly: DevExpress.Pdf.v24.2.Core.dll

NuGet Package: DevExpress.Pdf.Core

#Declaration

public Pkcs7Signer(
    X509Certificate2 certificate
)

#Parameters

Name Type Description
certificate X509Certificate2

An X.509 signature certificate.

#Remarks

The PDF Document API uses the SHA-256 hashing algorithm. If the OS cryptographic implemetation doesn’t support SHA-256 hashing algorithm, the CryptographicException is thrown. Use the Pkcs7Signer.Pkcs7Signer(X509Certificate2, HashAlgorithmType) constructor to change hashing algorithm.

See Also