From a72516fdcc20105e5a808242acf63cc747620633 Mon Sep 17 00:00:00 2001 From: Christian Date: Sat, 25 Nov 2017 19:50:31 +0100 Subject: [PATCH 1/2] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 57dfce2..92520be 100644 --- a/README.md +++ b/README.md @@ -49,7 +49,7 @@ MQTTnet is a high performance .NET library for MQTT based communication. It prov * .NET Standard 1.3+ * .NET Core 1.1+ * .NET Core App 1.1+ -* Universal Windows Platform (UWP) 10.0.10240+ (x86, x64, ARM, AnyCPU, WIndows IoT Core) +* Universal Windows Platform (UWP) 10.0.10240+ (x86, x64, ARM, AnyCPU, Windows 10 IoT Core) * .NET Framework 4.5.2+ (x86, x64, AnyCPU) * Mono 5.2+ * Xamarin.Android 7.5+ From f974dcb647c98ca467057f13cff61f215175d313 Mon Sep 17 00:00:00 2001 From: cvellan <34144841+cvellan@users.noreply.github.com> Date: Tue, 5 Dec 2017 10:13:07 +1100 Subject: [PATCH 2/2] Serialized certificates loaded as X509Certificate2 Instances of X509Certificate2 passed into an MqttClientOptionsBuilder lose data and functionality by being loaded as an X509Certificate. --- .../MQTTnet.NetStandard/Implementations/MqttTcpChannel.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Frameworks/MQTTnet.NetStandard/Implementations/MqttTcpChannel.cs b/Frameworks/MQTTnet.NetStandard/Implementations/MqttTcpChannel.cs index ce9dcf6..8fa93ff 100644 --- a/Frameworks/MQTTnet.NetStandard/Implementations/MqttTcpChannel.cs +++ b/Frameworks/MQTTnet.NetStandard/Implementations/MqttTcpChannel.cs @@ -130,7 +130,7 @@ namespace MQTTnet.Implementations foreach (var certificate in options.TlsOptions.Certificates) { - certificates.Add(new X509Certificate(certificate)); + certificates.Add(new X509Certificate2(certificate)); } return certificates; @@ -155,4 +155,4 @@ namespace MQTTnet.Implementations } } -#endif \ No newline at end of file +#endif