我在使用azure iot hub device-identity create
命令时遇到麻烦。我正在运行以下命令:
az iot hub device-identity create --device-id my-device-id --hub-name my-iot-hub
但是SSL仍然会出现严重的握手错误(请参见下面的调试)。不太确定为什么,因为我可以顺利通过az login
。
我已经尝试使用Python库的标志来允许不安全的连接而没有运气。我以为这是我工作的公司代理,因此尝试将wifi路由转到一个热点,但这也不起作用。
urllib3.util.retry : Incremented Retry for (url='/devices/cpl410-dev?api-version=2018-08-30-preview'): Retry(total=3, connect=4, read=4, redirect=None, status=None)
urllib3.connectionpool : Retrying (Retry(total=3, connect=4, read=4, redirect=None, status=None)) after connection broken by 'SSLError(SSLError("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')],)",),)': /devices/cpl410-dev?api-version=2018-08-30-preview
我希望这只是连接,但是我想我在某处缺少证书设置。有人可以帮忙吗?这个问题使我发疯。预先感谢!
答案 0 :(得分:0)
如果有可能,您会使用X509证书保护集线器
https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-security-x509-get-started#