求助:ESP8266连接到IBM的Bluemix云端,开始SSL单向认证,认证失败。

yinxiang
Posts: 2
Joined: Wed Oct 18, 2017 10:40 am

求助:ESP8266连接到IBM的Bluemix云端,开始SSL单向认证,认证失败。

Postby yinxiang » Thu Oct 19, 2017 9:06 am

请教各位大神,我之前把ESP8266连接到MQTT服务器,开始SSL认证是成功的,现在我需要把ESP8266 连接到Bluemix云端,还是按照之前的方式,把Bluemix生成的.PEM文件转成.DER文件,再将.DER文件重命名为.cer文件,使用make_cacert.py生成esp_ca_cert.bin文件,将bin文件烧录到0x77的位置上。但是一直认证不成功,log如下。Bluemix的SSL认证要求SSL版本是TSL1.2,不知道是不是版本的问题。

[08:53:07.727] DNS: found ip 159.122.121.82
[08:53:07.727] TCP: connecting...
[08:53:07.732] TLS_ca_x509.cer 3fb
[08:53:07.957] client handshake start.
[08:53:08.178] distinguished names: [DigiCert SHA2 Secure Server CA], [*.messaging.internetofthings.ibmcloud.com]
[08:53:08.208] before 1411344000, tv_sec 1508403192, after 1511913600
[08:53:08.216] distinguished names: [DigiCert SHA2 Secure Server CA], [DigiCert SHA2 Secure Server CA]
[08:53:08.227] distinguished names: [DigiCert Inc], [DigiCert Inc]
[08:53:08.227] distinguished names: [<null>], [<null>]
[08:53:08.227] check the signature ok
[08:53:08.298] distinguished names: [DigiCert Global Root CA], [DigiCert SHA2 Secure Server CA]
[08:53:08.307] before 1362700800, tv_sec 1508403192, after 1678233600
[08:53:08.318] look for a trusted cert
[08:53:08.318] distinguished names: [DigiCert Global Root CA], [192.168.200.129]
[08:53:08.318] client handshake failed
[08:53:08.318] Error: No trusted cert is available
[08:53:08.327] TCP: Reconnect to izug7d.messaging.internetofthings.ibmcloud.com:8883
[08:53:08.327]
[08:53:13.119] pm open,type:2 0
[08:53:13.119] Free memory
[08:53:13.538] TCP: Connect to domain izug7d.messaging.internetofthings.ibmcloud.com:8883
[08:53:13.549] TCP: Reconnect to: izug7d.messaging.internetofthings.ibmcloud.com:8883
[08:53:13.549] DNS: found ip 159.122.121.82
[08:53:13.549] TCP: connecting...
[08:53:13.552] TLS_ca_x509.cer 3fb
[08:53:13.756] client handshake start.
[08:53:13.974]
[08:54:14.858] TCP: Reconnect to izug7d.messaging.internetofthings.ibmcloud.com:8883
[08:54:14.858]
[08:54:20.539] Free memory
[08:54:20.539] TCP: Connect to domain izug7d.messaging.internetofthings.ibmcloud.com:8883
[08:54:20.548] TCP: Reconnect to: izug7d.messaging.internetofthings.ibmcloud.com:8883
[08:54:20.554] DNS: found ip 159.122.121.82
[08:54:20.554] TCP: connecting...
[08:54:20.554] TLS_ca_x509.cer 3fb
[08:54:20.852] client handshake start.
[08:54:21.166]
[08:55:21.529] TCP: Reconnect to izug7d.messaging.internetofthings.ibmcloud.com:8883
[08:55:21.529]
[08:55:26.539] Free memory
[08:55:26.539] TCP: Connect to domain izug7d.messaging.internetofthings.ibmcloud.com:8883
[08:55:26.547] TCP: Reconnect to: izug7d.messaging.internetofthings.ibmcloud.com:8883
[08:55:26.554] DNS: found ip 159.122.121.82
[08:55:26.554] TCP: connecting...
[08:55:26.554] TLS_ca_x509.cer 3fb
[08:55:26.901] client handshake start.
[08:55:27.209] distinguished names: [DigiCert SHA2 Secure Server CA], [*.messaging.internetofthings.ibmcloud.com]
[08:55:27.239] before 1411344000, tv_sec 1508403331, after 1511913600
[08:55:27.239] distinguished names: [DigiCert SHA2 Secure Server CA], [DigiCert SHA2 Secure Server CA]
[08:55:27.247] distinguished names: [DigiCert Inc], [DigiCert Inc]
[08:55:27.253] distinguished names: [<null>], [<null>]
[08:55:27.253] check the signature ok
[08:55:27.329] distinguished names: [DigiCert Global Root CA], [DigiCert SHA2 Secure Server CA]
[08:55:27.329] before 1362700800, tv_sec 1508403331, after 1678233600
[08:55:27.338] look for a trusted cert
[08:55:27.338] distinguished names: [DigiCert Global Root CA], [192.168.200.129]
[08:55:27.349] client handshake failed
[08:55:27.349] Error: No trusted cert is available
[08:55:27.349] TCP: Reconnect to izug7d.messaging.internetofthings.ibmcloud.com:8883
[08:55:27.355]

Who is online

Users browsing this forum: No registered users and 6 guests