From ac326babdf0fecdb8fa1008026b7b1d65434aa36 Mon Sep 17 00:00:00 2001 From: Anton Yaroshenko Date: Sun, 17 Nov 2019 20:12:03 +0200 Subject: [PATCH] blind uwp fix --- Source/MQTTnet/Implementations/MqttTcpChannel.Uwp.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/MQTTnet/Implementations/MqttTcpChannel.Uwp.cs b/Source/MQTTnet/Implementations/MqttTcpChannel.Uwp.cs index cb0f71c2..2b848995 100644 --- a/Source/MQTTnet/Implementations/MqttTcpChannel.Uwp.cs +++ b/Source/MQTTnet/Implementations/MqttTcpChannel.Uwp.cs @@ -132,7 +132,7 @@ namespace MQTTnet.Implementations throw new NotSupportedException("Only one client certificate is supported for UWP."); } - return new Certificate(options.TlsOptions.Certificates.First().AsBuffer()); + return new Certificate(options.TlsOptions.Certificates.First().GetRawCertData()); } private IEnumerable ResolveIgnorableServerCertificateErrors()