OpenWrt/LEDE:MOSQUITO在启用SSL时无法在任何端口上创建websockets侦听器

OpenWrt/LEDE:MOSQUITO在启用SSL时无法在任何端口上创建websockets侦听器,ssl,mosquitto,openwrt,Ssl,Mosquitto,Openwrt,当mosquitto配置: port 1883 listener 443 protocol websockets 它工作得很好。 我想启用SSL/TLS支持: port 1883 listener 443 protocol websockets cafile /etc/mosquitto/certs/ca.crt certfile /etc/mosquitto/certs/server.crt keyfile /etc/mosquitto/certs/server.key 我得到一个错

当mosquitto配置:

port 1883
listener 443
protocol websockets
它工作得很好。 我想启用SSL/TLS支持:

port 1883
listener 443
protocol websockets
cafile   /etc/mosquitto/certs/ca.crt
certfile /etc/mosquitto/certs/server.crt
keyfile  /etc/mosquitto/certs/server.key
我得到一个错误:

错误:无法在端口443上创建websockets侦听器

菜单配置:

->Network->mosquitto-ssl =y
->Libraries->SSL->libopenssl->Enable support for TLS 1.3 =y

关于如何在我的设备上为MOSQUITO启用SSL/TLS支持,有什么想法吗?

您尝试过443以外的端口吗?我猜443已经被一些东西使用了,比如管理员web界面。是的,我有。其他的都是一样的。但是如果我禁用SSL/TLS支持,端口可以打开,mosquitto工作正常。好的,你确定所有证书/密钥文件的格式都正确,并且对运行MOSQUITO的用户有正确的权限吗(必须是root才能使用端口443)?我对我的Openwrt设备有正确的权限。但我不能确定证书/密钥文件是否正确。证书/密钥文件是我自己生成的。我用同样的方法生成其他证书/密钥文件,我在另一个设备上使用了它们,该设备是Ubuntu系统,在该设备上带有WSS的MOSQUITO是正确的。