CertificateValidationFlags Enumeration
Defines flags indicating errors of certificate validation.

Namespace: MailBee.Security
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 12.5.0 build 687 for .NET 4.5
Syntax
[FlagsAttribute]
public enum CertificateValidationFlags
Members
  Member nameValueDescription
None0 No errors.
IsNotTimeValid1 This certificate or one of the certificates in the certificate chain is not time-valid.
IsNotTimeNested2 Certificates in the chain are not properly time-nested.
IsRevoked4 Trust for this certificate or one of the certificates in the chain has been revoked.
IsNotSignatureValid8 The certificate or one of the certificates in the chain does not have a valid signature.
IsNotValidForUsage16 The certificate or the chain is not valid in its proposed usage.
IsUntrustedRoot32 The certificate or the chain is based on an untrusted root.
RevocationStatusUnknown64 The revocation status of the certificate or one of the certificates in the chain is unknown.
IsCyclic128 One of the certificates in the chain was issued by a certification authority which had certified the original certificate.
IsPartialChain65536 The certificate chain is not complete.
IsNotTimeValidCtl131072 A CTL used to create this chain was not time-valid.
IsNotSignatureValidCtl262144 A CTL used to create this chain did not have a valid signature.
IsNotValidForUsageCtl524288 A CTL used to create this chain is not valid for this usage.
NameMismatch16777216 Certificate name mismatch.
All17760447 All the flags listed above.
Remarks

Validate method returns CertificateValidationFlags value for the given certificate.

When checking S/MIME signatures of e-mail messages, you can use Verify(MailMessage, MessageVerificationFlags, CertificateStore) method which can perform complex verification of the message signature including validating its certificate.

When making SSL connections to mail servers, you can set AutoValidation property to tell MailBee to automatically validate the server certificate accordingly the specified criteria and throw MailBeeCertificateValidationException if the validation process fails for any of the criteria.

See Also