Click or drag to resize
MimeKit

HttpsProxyClientCheckCertificateRevocation Property

Get or set whether connecting via SSL/TLS should check certificate revocation.

Namespace: MailKit.Net.Proxy
Assembly: MailKit (in MailKit.dll) Version: 4.7.1
Syntax
C#
public bool CheckCertificateRevocation { get; set; }

Property Value

Boolean
true if certificate revocation should be checked; otherwise, false.
Remarks

Gets or sets whether connecting via SSL/TLS should check certificate revocation.

Normally, the value of this property should be set to true (the default) for security reasons, but there are times when it may be necessary to set it to false.

For example, most Certificate Authorities are probably pretty good at keeping their CRL and/or OCSP servers up 24/7, but occasionally they do go down or are otherwise unreachable due to other network problems between the client and the Certificate Authority. When this happens, it becomes impossible to check the revocation status of one or more of the certificates in the chain resulting in an SslHandshakeException being thrown in the Connect method. If this becomes a problem, it may become desirable to set CheckCertificateRevocation to false.

See Also