简体   繁体   English

无法通过ThreadX客户端与Azure IoTHub通信

[英]Unable to Communicate with Azure IoTHub from ThreadX client

We are creating an application where ThreadX based client would be communicating with IOT Hub. 我们正在创建一个应用程序,基于ThreadX的客户端将与IOT Hub进行通信。 Made appropriate adapter changes to make client work with IOT Azure C SDK. 进行了适当的适配器更改,以使客户端可以与IOT Azure C SDK一起使用。 We observe "Bad Certificate" error thrown by client on wire shark error. 我们观察到客户端在“鲨鱼”错误时抛出“错误证书”错误。 From wireshark we are certain that client sends "Hello" on which Server (IOT Hub) responds "Server Hello, Certificate, Certificate Request, Server Hello Done". 从wireshark中,我们确定客户端会发送“ Hello”,服务器(IOT集线器)将在该响应上响应“服务器Hello,证书,证书请求,服务器Hello完成”。 It is here when client tries authenticate server certificate we see "Bad Certificate" being thrown. 当客户端尝试对服务器证书进行身份验证时,我们会在此处看到“错误证书”被抛出。 We are attaching in mail the root certificate we are adding to client and the wireshark we see stating bad certificate. 我们在邮件中附加了我们要添加到客户端的根证书和我们看到的说明无效证书的Wireshk。

设备错误

This is not about the Azure C SDK support for ThreadX. 这与Azure C SDK对ThreadX的支持无关。

If you are certain from Wireshark that the steps till Server Hello Done are successfully completed, most probably this is an issue with certificate formatting, may be missing escape character at the end of each line in certificate etc. 如果您从Wireshark确信成功完成Server Hello Done的步骤,则很可能是证书格式问题,证书中每行末尾可能缺少转义符,等等。

You can try using the Certificate fingerprint instead to see if it works. 您可以尝试使用证书指纹来查看它是否有效。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM