瀏覽代碼

Fix revocation checks in certificate validator.

release/3.x.x
Christian Kratky 6 年之前
父節點
當前提交
03bef4c15d
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      Source/MQTTnet/Implementations/MqttTcpChannel.cs

+ 1
- 1
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)
{


Loading…
取消
儲存