Skip to content

Commit

Permalink
Fix revocation checks in certificate validator.
Browse files Browse the repository at this point in the history
  • Loading branch information
chkr1011 committed Oct 1, 2018
1 parent ba62ca7 commit 03bef4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/MQTTnet/Implementations/MqttTcpChannel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ private bool InternalUserCertificateValidationCallback(object sender, X509Certif
return true;
}

if (chain.ChainStatus.Any(c => c.Status == X509ChainStatusFlags.RevocationStatusUnknown || c.Status == X509ChainStatusFlags.Revoked || c.Status == X509ChainStatusFlags.RevocationStatusUnknown))
if (chain.ChainStatus.Any(c => c.Status == X509ChainStatusFlags.RevocationStatusUnknown || c.Status == X509ChainStatusFlags.Revoked || c.Status == X509ChainStatusFlags.OfflineRevocation))
{
if (!_options.TlsOptions.IgnoreCertificateRevocationErrors)
{
Expand Down

0 comments on commit 03bef4c

Please sign in to comment.