Azure IoT C#SDK证书出现问题 [英] Trouble with Azure IoT C# SDK Certificate

查看:123
本文介绍了Azure IoT C#SDK证书出现问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试连接到Azure IoT中心时收到此错误. Microsoft.Azure.Devices.Client.Exceptions.UnauthorizedException.

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

由于我的信誉度不足,因此无法在此处发布错误屏幕截图. 因此,我将整个细节写在 http://azuregeon.blogspot.in/2017/10/azure-iot-c-certificate-connectivity.html

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.

推荐答案

对x.509设备进行身份验证时,应将公用名"设置为"_demoDevice".通用名称用于在Azure Web界面中标识此证书.此外,基于官方文档(

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).

这篇关于Azure IoT C#SDK证书出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆