![](/img/trans.png)
[英]Question regarding SSL Authentication on Mosquitto MQTT Broker
[英]Mosquitto MQTT Broker setup with authentication username password
我正在嘗試使用用戶名和密碼身份驗證在 Windows 上配置 Mosquitto MQTT 代理。
我在 mosquitto.conf 文件中添加了以下行:
allow_anonymous 假
用戶名測試 remote_username 測試
remote_password Test123
運行代理時發生以下錯誤:
C:\\Program Files (x86)\\mosquitto>mosquitto.exe -c mosquitto.conf -p 1883 錯誤:網橋配置無效。 在 mosquitto.conf:750 中發現錯誤。 錯誤:無法打開配置文件。
沒有用戶名和密碼,我就可以啟動代理並與 MQTTLens 客戶端連接。
謝謝,阿肖克
remote_username
和remote_password
選項用於配置網橋。 您應該查看password_file
選項。 例如
password_file /etc/mosquitto/pwfile
生成文件
mosquitto_passwd -c /etc/mosquitto/pwfile ashok
並添加更多用戶
mosquitto_passwd /etc/mosquitto/pwfile guest
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.