We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
arduino
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent 522e3a4 commit 449bd65Copy full SHA for 449bd65
arduino_iot_cloud/ucloud.py
@@ -195,8 +195,12 @@ def __init__(
195
if "keyfile" in ssl_params and "der" in ssl_params["keyfile"]:
196
with open(ssl_params.pop("keyfile"), "rb") as f:
197
ssl_params["key"] = f.read()
198
+ if "certfile" in ssl_params and "der" in ssl_params["certfile"]:
199
with open(ssl_params.pop("certfile"), "rb") as f:
200
ssl_params["cert"] = f.read()
201
+ if "ca_certs" in ssl_params and "der" in ssl_params["ca_certs"]:
202
+ with open(ssl_params.pop("ca_certs"), "rb") as f:
203
+ ssl_params["cadata"] = f.read()
204
205
# If no server/port were passed in args, set the default server/port
206
# based on authentication type.
0 commit comments