【问题标题】:Bluemix IoTF connection error - PythonBluemix IoTF 连接错误 - Python
【发布时间】:2016-03-21 07:20:31
【问题描述】:

朋友们,

我在 IBM Bluemix IoTF 中创建了一个设备,生成了身份验证令牌,并且一切都设置好了。我正在尝试使用 Python(ibm-iotf 库)连接并向该设备发送消息,并且该程序已创建。但是当我运行程序时,我收到以下错误。请帮忙。

2016-03-21 11:04:15,786 ibmiotf.device.Client WARNING Unable to encrypt messages because TLSv1.2 is unavailable (MQTT over SSL requires at least Python v2.7.9 or 3.4 and openssl v1.0.1)

[Errno 10054] An existing connection was forcibly closed by the remote host

2016-03-21 11:04:16,446 ibmiotf.device.Client ERROR Unexpected disconnect from the IBM Internet of Things Foundation

2016-03-21 11:04:16,446 ibmiotf.device.Client INFO Messages published : 0, life: 1s, rate: 1/0.00s

2016-03-21 11:04:16,446 ibmiotf.device.Client INFO Messages received : 0, life: 1s, rate: 1/0.00s

【问题讨论】:

  • 很明确的说你至少需要有 Python 2.7.9 或 3.4 和 OpenSSL 1.0.1,否则 TLSv1.2 不起作用。

标签: python ibm-cloud mqtt iot tls1.2


【解决方案1】:

根据documentation:物联网平台需要 TLS v1.2。我们建议使用以下密码套件:ECDHE-RSA-AES256-GCM-SHA384、AES256-GCM-SHA384、ECDHE-RSA-AES128-GCM-SHA256 或 AES128-GCM-SHA256。

确保您拥有 Python 版本和 Open SSL 1.0.1,它提供对 TLS v1.2 的支持

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2015-07-20
    • 2012-11-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多