Browse Source

Fix revocation checks in certificate validator.

release/3.x.x
Christian Kratky 6 years ago
parent
commit
03bef4c15d
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      Source/MQTTnet/Implementations/MqttTcpChannel.cs

+ 1
- 1
Source/MQTTnet/Implementations/MqttTcpChannel.cs View File

@@ -116,7 +116,7 @@ namespace MQTTnet.Implementations
return true; 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) if (!_options.TlsOptions.IgnoreCertificateRevocationErrors)
{ {


Loading…
Cancel
Save