M2Mqtt.NET-客户端和服务器无法通信,因为它们没有通用的算法

时间:2016-11-18 06:13:02

标签: asp.net mqtt tls1.2 mosquitto aws-iot

我正在使用 M2Mqtt.NET 连接到 Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: There is no data for the field at position 14.; Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: There is no data for the field at position 21.; Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: There is no data for the field at position 5.; Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: There is no data for the field at position 7.; Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: There is no data for the field at position 8.; 。当我尝试连接时,发生异常AWS IoT broker

代码:

The client and server cannot communicate, because they do not possess a common algorithm

我尝试的事情:

  • 选中并确认服务器正在运行//getting certificates from file X509Certificate certRoot = X509Certificate.CreateFromCertFile("path/to/root.crt"); X509Certificate certClient = X509Certificate.CreateFromCertFile("path/to/client.crt"); //creating client var mqttClient = new MqttClient("brokerAddress", 8883, true, new X509Certificate(certRoot), new X509Certificate(certClient), MqttSslProtocols.TLSv1_2); //connecting client-the problem line mqttClient.Connect(AppConstants.CLIENT_ID); //GUID
  • 将两个证书都安装为可信任
  • 创建新证书
  • 通过TLS 1.2文件
  • 使用证书
  • 在HTTPS上运行Web项目

项目设置:

  • ASP.NET MVC项目

  • .NET 4.5.2

  • Windows 10 Enterprise 64位(10.0,Build 10240)

0 个答案:

没有答案
相关问题