ssl连接报错

环境

  • EMQX 版本:4.4.2
  • 操作系统版本:
    NAME=“Kylin Linux Advanced Server”
    VERSION=“V10 (Sword)”
    ID=“kylin”
    VERSION_ID=“V10”
    PRETTY_NAME=“Kylin Linux Advanced Server V10 (Sword)”
    ANSI_COLOR=“0;31”
    4.19.90-24.4.v2101.ky10.aarch64

默认配置,就是生成了自签名的ssl证书,然后客户端通过ssl连接就报下面这个错误

ssl连接报错:
supervisor: ‘esockd_connection_sup - <0.1859.0>’, errorContext: connection_shutdown, reason: {ssl_error,{tls_alert,{unexpected_message,“TLS server: In state hello at tls_record.erl:558 generated SERVER ALERT: Fatal - Unexpected Message\n {unsupported_record_type,16}”}}}, offender: [{pid,<0.2971.0>},{name,connection},{mfargs,{emqx_connection,start_link,[[{deflate_options,},{max_conn_rate,100000},{active_n,100},{zone,external},{proxy_address_header,<<>>},{proxy_port_header,<<>>},{supported_subprotocols,}]]}}]

你好,看着 SSL 的握手失败了:

  1. 贴下emqx ssl 的配置,和客户端的建立链接的做法吗?
  2. 最好也抓包看下这个握手过程