Click or drag to resize

SignerBaseConfigureX509ChainForValidation Method

Configure certificate chain for validation accepted certificates.

Namespace:  ASDSoft.WebSigner.Server
Assembly:  ASDSoft.WebSigner.Server (in ASDSoft.WebSigner.Server.dll) Version: 2.5.0
Syntax
C#
protected virtual void ConfigureX509ChainForValidation(
	X509Chain chain,
	X509Certificate2 certificate,
	SignatureRequest[] signatureRequests
)

Parameters

chain
Type: System.Security.Cryptography.X509CertificatesX509Chain
Certificate chain for configuration.
certificate
Type: System.Security.Cryptography.X509CertificatesX509Certificate2
Client certificate for signing.
signatureRequests
Type: ASDSoft.WebSignerSignatureRequest
Signature requests for signing.
Remarks
This method is called by the infrastructure for filtering accepted certificate and during validation of created signature.

Default implementation is:

chain.ChainPolicy.RevocationFlag = X509RevocationFlag.EndCertificateOnly;
chain.ChainPolicy.RevocationMode = X509RevocationMode.Online;
chain.ChainPolicy.VerificationFlags = X509VerificationFlags.NoFlag;
See Also