Class SMimeSignerOptions
Options for S/MIME signing (RFC 5751 §3.4).
Inherited Members
Namespace: DRIT.Mail.Rfc.SMime
Assembly: DRIT.Mail.dll
Syntax
public sealed class SMimeSignerOptions
Properties
View SourceDigestAlgorithm
Gets or sets the digest algorithm. Defaults to SHA-256.
Declaration
public SMimeDigestAlgorithm DigestAlgorithm { get; set; }
Property Value
| Type | Description |
|---|---|
| SMimeDigestAlgorithm |
ExtraCertificates
Gets or sets additional certificates (DER-encoded) to embed in the SignedData (e.g. the issuer chain). The signer certificate is always included.
Declaration
public IReadOnlyList<byte[]>? ExtraCertificates { get; set; }
Property Value
| Type | Description |
|---|---|
| IReadOnlyList<byte[]> |
IncludeSigningTime
Gets or sets a value indicating whether to include the signingTime signed
attribute. Defaults to true.
Declaration
public bool IncludeSigningTime { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
PrivateKey
Gets or sets the RSA private key used to produce the signature.
Declaration
public RSA? PrivateKey { get; set; }
Property Value
| Type | Description |
|---|---|
| RSA |
SignerCertificate
Gets or sets the signer's X.509 certificate. The certificate must contain an RSA public key that matches PrivateKey.
Declaration
public X509CertificateInfo? SignerCertificate { get; set; }
Property Value
| Type | Description |
|---|---|
| X509CertificateInfo |