From 03bef4c15d5155b9f2334412a4b707f054a48d35 Mon Sep 17 00:00:00 2001 From: Christian Kratky Date: Mon, 1 Oct 2018 21:50:54 +0200 Subject: [PATCH] Fix revocation checks in certificate validator. --- Source/MQTTnet/Implementations/MqttTcpChannel.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/MQTTnet/Implementations/MqttTcpChannel.cs b/Source/MQTTnet/Implementations/MqttTcpChannel.cs index bc10d65..3928328 100644 --- a/Source/MQTTnet/Implementations/MqttTcpChannel.cs +++ b/Source/MQTTnet/Implementations/MqttTcpChannel.cs @@ -116,7 +116,7 @@ namespace MQTTnet.Implementations 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) {