Click or drag to resize
MimeKit

CmsSigner(X509Certificate2, SubjectIdentifierType) Constructor

Initialize a new instance of the CmsSigner class.

Namespace: MimeKit.Cryptography
Assembly: MimeKit (in MimeKit.dll) Version: 4.3.0
Syntax
C#
public CmsSigner(
	X509Certificate2 certificate,
	SubjectIdentifierType signerIdentifierType = SubjectIdentifierType.IssuerAndSerialNumber
)

Parameters

certificate  X509Certificate2
The signer's certificate.
signerIdentifierType  SubjectIdentifierType  (Optional)
The scheme used for identifying the signer certificate.
Exceptions
ExceptionCondition
ArgumentNullExceptioncertificate is null.
ArgumentExceptioncertificate cannot be used for signing.
Remarks

The initial value of the DigestAlgorithm will be set to Sha256 and both the SignedAttributes and UnsignedAttributes properties will be initialized to empty tables.

See Also