这篇主要记录一下使用过程中的问题。
1.想使用SSL/TLS验证时安装了Certbot,并申请到了对应的证书,添加8883端口相关配置后却无法连接:
# TLS 监听端口
listener 8883
# 证书配置(将路径中的域名替换成你的)
certfile /etc/letsencrypt/live/mqtt.yourdomain.com/fullchain.pem
keyfile /etc/letsencrypt/live/mqtt.yourdomain.com/privkey.pem
# 可选:要求客户端证书(双向认证,更安全)
# require_certificate true
# cafile /etc/letsencrypt/live/mqtt.yourdomain.com/chain.pem