错误报告
环境
- EMQX 版本:5.0.12-otp24.3.4.2_1.el7
- 操作系统版本:centos 7.6
重现此问题的步骤
- 修改 /etc/emqx/emqx.conf 配置文件
listeners.ssl.default {
bind = “0.0.0.0:8883”
max_connections = 512000
ssl_options {
keyfile = “/etc/emqx/certs/service.pem”
certfile = “/etc/emqx/certs/service.pem”
cacertfile = “/etc/emqx/certs/ca.pem”
}
}
重启后,链接
一直报
预期行为
配置应该起作用
实际行为
配置不起作用
2023-01-12T10:00:32.478974+08:00 [error] supervisor: ‘esockd_connection_sup - <0.2153.0>’, errorContext: connection_shutdown, reason: {ssl_error,{options,{cacertfile,“/etc/emqx/certs/ca.pem”,{error,enoent}}}}, offender: [{pid,<0.10866.1>},{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,default},zone => default}]}}]