We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80f5f54 commit b78f08cCopy full SHA for b78f08c
hub/protocol/protocol.py
@@ -88,9 +88,11 @@ def _ssl_init(self, key_mode):
88
# 密钥认证
89
if key_mode is True:
90
# context = ssl.create_default_context(ssl.Purpose.CLIENT_AUTH, cadata=self.__iot_ca_crt)
91
+ self.__logger.info("connect with key...")
92
context = self.__codec.Ssl().create_content()
93
self.__mqtt_client.tls_set_context(context)
94
else:
95
+ self.__logger.info("connect with certificate...")
96
ca = self.__certificate.ca_file
97
cert = self.__certificate.cert_file
98
key = self.__certificate.key_file
0 commit comments