Explorar el Código

Fix revocation checks in certificate validator.

release/3.x.x
Christian Kratky hace 6 años
padre
commit
03bef4c15d
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      Source/MQTTnet/Implementations/MqttTcpChannel.cs

+ 1
- 1
Source/MQTTnet/Implementations/MqttTcpChannel.cs Ver fichero

@@ -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)
{


Cargando…
Cancelar
Guardar