All docs
V20.2
20.2
20.1
The page you are viewing does not exist in version 20.1. This link will take you to the root page.
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

SignatureOptions.CertificatePolicy Property

Specifies the chain policy used to build an X509 certificate chain.

Namespace: DevExpress.Office.DigitalSignatures

Assembly: DevExpress.Docs.v20.2.dll

Declaration

public X509ChainPolicy CertificatePolicy { get; set; }
Public Property CertificatePolicy As X509ChainPolicy

Property Value

Type Description
X509ChainPolicy

An object that contains the X.509 certificate chain policy.

Remarks

SignatureOptions options = new SignatureOptions();
options.Certificate =
 new X509Certificate2("Certificate/SignDemo.pfx", "dxdemo");

X509ChainPolicy policy = new X509ChainPolicy();
policy.RevocationMode = X509RevocationMode.NoCheck;
policy.RevocationFlag = X509RevocationFlag.ExcludeRoot;
policy.VerificationFlags |= X509VerificationFlags.AllowUnknownCertificateAuthority |
  X509VerificationFlags.IgnoreCertificateAuthorityRevocationUnknown;

options.CertificatePolicy = policy;
options.TimestampCertificatePolicy = policy;
See Also