SSL加密连接遇到Encrypted Alert

2024-03-19T01:51:08.863825+08:00 [error] supervisor: ‘esockd_connection_sup - <0.2144.0>’, errorContext: connection_shutdown, reason: {ssl_error,{tls_alert,{unexpected_message,“TLS server: In state hello at tls_record.erl:564 generated SERVER ALERT: Fatal - Unexpected Message\n {unsupported_record_type,83}”}}}, offender: [{pid,<0.21829.11>},{name,connection},{mfargs,{emqx_connection,start_link,[#{enable_authn => true,limiter => #{bytes_in => #{capacity => 1099511627776,initial => 0,rate => infinity},client => #{bytes_in => #{capacity => 1099511627776,divisible => false,failure_strategy => force,initial => 0,low_watermark => 0,max_retry_time => 10000,rate => infinity},connection => #{capacity => 1099511627776,divisible => false,failure_strategy => force,initial => 0,low_watermark => 0,max_retry_time => 10000,rate => infinity},message_in => #{capacity => 1099511627776,divisible => false,failure_strategy => force,initial => 0,low_watermark => 0,max_retry_time => 10000,rate => infinity},message_routing => #{capacity => 1099511627776,divisible => false,failure_strategy => force,initial => 0,low_watermark => 0,max_retry_time => 10000,rate => infinity}},connection => #{capacity => 1000,initial => 0,rate => 100.0},message_in => #{capacity => 1099511627776,initial => 0,rate => infinity},message_routing => #{capacity => 1099511627776,initial => 0,rate => infinity}},listener => {ssl,‘mbe-mqtts’},zone => default}]}}]

多台设备遇到过相同的问题,抓包显示设备端发送Alert Message: Encrypted Alert后断连

你这个日志好像是因为非 TLS 客户端接到了 8883 端口上,所以打印了一个握手失败的错误。
但你说你的正常 TLS 设备握手失败,收到 encryted alert,需要看看抓包里的握手具体情况。

你好,不是握手失败引起的,是设备能够正常连接,一段时间后报错导致断连。但是都是相同的设备在运行,某些设备偶然会出现这个问题,其余设备又能正常工作不会断连。

请问解决了吗 我也遇到这个问题了。不知道怎么解决