From b10a69a0aec5574178acfbb77a0d9fa3ecb4337a Mon Sep 17 00:00:00 2001 From: Christian <6939810+chkr1011@users.noreply.github.com> Date: Fri, 1 Jul 2022 17:03:33 +0200 Subject: [PATCH] Update release notes. --- .github/workflows/ReleaseNotes.md | 1 + Source/MQTTnet/Implementations/MqttTcpChannel.cs | 2 ++ 2 files changed, 3 insertions(+) diff --git a/.github/workflows/ReleaseNotes.md b/.github/workflows/ReleaseNotes.md index 1a613421..64d57698 100644 --- a/.github/workflows/ReleaseNotes.md +++ b/.github/workflows/ReleaseNotes.md @@ -1,4 +1,5 @@ * [Core] Updated nuget packages. +* [Core] The option _IgnoreCertificateChainErrors_ is now respected (thanks to @GodVenn, #1447). * [ManagedClient] The managed client now sends the entire topic filter including new MQTTv5 properties when subscribing. * [Server] Fixed reporting of _MaximumQoS_ in _ConnAck_ packet (MQTTv5 only) (#1442). * [Server] Fix cross thread issue in session message storage for QoS 1 and 2. diff --git a/Source/MQTTnet/Implementations/MqttTcpChannel.cs b/Source/MQTTnet/Implementations/MqttTcpChannel.cs index 3c173947..295cee6b 100644 --- a/Source/MQTTnet/Implementations/MqttTcpChannel.cs +++ b/Source/MQTTnet/Implementations/MqttTcpChannel.cs @@ -275,7 +275,9 @@ namespace MQTTnet.Implementations } if (_tcpOptions?.TlsOptions?.IgnoreCertificateChainErrors ?? false) + { sslPolicyErrors &= ~SslPolicyErrors.RemoteCertificateChainErrors; + } return sslPolicyErrors == SslPolicyErrors.None; } -- GitLab