Trouble with Azure IoT C# SDK Certificate

此生再无相见时 提交于 2019-12-08 09:54:13

问题


I am receiving this error when I try to connect to Azure IoT Hub. Microsoft.Azure.Devices.Client.Exceptions.UnauthorizedException.

I could not post the error screen shots here, since I do not have enough reputation points. So instead I wrote the whole details at http://azuregeon.blogspot.in/2017/10/azure-iot-c-certificate-connectivity.html

if anyone gets a chance please have a look.


回答1:


You should set the Common Name as "_demoDevice" when authenticating you x.509 device. The Common Name is used to identify this certificate in the Azure web interface.In addition, the operation will be more simple and precise based on the official documationation(PowerShell scripts to manage CA-signed X.509 certificates).



来源:https://stackoverflow.com/questions/46885322/trouble-with-azure-iot-c-sharp-sdk-certificate

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!