请选择 进入手机版 | 继续访问电脑版
论坛
登录 | 立即注册 设为首页收藏本站 切换到宽版
查看: 670|回复: 1

ESP8266用了SSL加密后,通信过程中有概率出现重新握手。

[复制链接]

1

主题

2

帖子

22

积分

新手上路

Rank: 1

积分
22
发表于 2018-10-20 17:37:24 | 显示全部楼层 |阅读模式
安信可科技,
你好,我这边用了ssl加密后,能够正常通信,但是通信过程中有概率出现需要重新握手,这是什么问题呢?
下面是串口打印的log。


[debug]:MCU发送数据
[debug]:publish num : 7

[2018:10:19:14:41:14][接收][result]:Free memory
[result]:TCP: Connect to ip  
[result]:MQTT_SSL ENABLE
[result]:TCP: Reconnect to
TLS.ca_x509.cer 17c
certificate 181
private_key 13f

[2018:10:19:14:41:14][接收]client handshake start.
distinguished names: [TLSGenSelfSignedtRootCA],
before 1524614400, tv_sec 1539960073, after 1956614400
distinguished names: [TLSGenSelfSignedtRootCA], [TLSGenSelfSignedtRootCA]
distinguished names: [<null>], [<null>]
distinguished names: [<null>], [<null>]
check the signature ok
distinguished names: [TLSGenSelfSignedtRootCA], [TLSGenSelfSignedtRootCA]
distinguished names: [<null>], [<null>]
distinguished names: [<null>], [<null>]
a self-signed certificate that is not in the CA store
before 1524614400, tv_sec 1539960073, after 1956614400
look for a trusted cert
distinguished names: [TLSGenSelfSignedtRootCA], [TLSGenSelfSignedtRootCA]
distinguished names: [<null>], [<null>]
distinguished names: [<null>], [<null>]
use the CA certificate for signature verification
check the signature ok

[2018:10:19:14:41:14][接收]client handshake ok!
[result]:MQTT: Connected to broker

mqtt_msg_connect
[result]:MQTT: Sending, type: 1, id:
[result]:TCP: Sent
[result]:MQTT: Connected to
[result]:MQTTConnected

回复

使用道具 举报

1

主题

2

帖子

22

积分

新手上路

Rank: 1

积分
22
 楼主| 发表于 2018-10-20 18:18:49 | 显示全部楼层
@安信可科技 @吕大爷的代码窗
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|安信可论坛    

GMT+8, 2019-9-23 06:16 , Processed in 0.019092 second(s), 13 queries , Redis On.

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表