Bouncy Castle Secure Mime ContextBuild Certificate Chain Method
Build a certificate chain.
Definition
Namespace: MimeKit.Cryptography
Assembly: MimeKit.Cryptography (in MimeKit.Cryptography.dll) Version: 5.0.0
The certificate chain, including the specified certificate.
Assembly: MimeKit.Cryptography (in MimeKit.Cryptography.dll) Version: 5.0.0
C#
protected IList<X509Certificate> BuildCertificateChain(
X509Certificate certificate
)Parameters
- certificate X509Certificate
- The certificate to build the chain for.
Return Value
IListX509CertificateThe certificate chain, including the specified certificate.
Remarks
Builds a certificate chain for the provided certificate to include when signing.
This method is ideal for use with custom GetCmsSigner(MailboxAddress, DigestAlgorithm) implementations when it is desirable to include the certificate chain in the signature.