浏览代码

update mosquitto config file for secure operations

Matthew R. Kasun 3 年之前
父节点
当前提交
911db1897d
共有 1 个文件被更改,包括 11 次插入1 次删除
  1. 11 1
      docker/mosquitto.conf

+ 11 - 1
docker/mosquitto.conf

@@ -1,4 +1,14 @@
 persistence true
 per_listener_settings true
-listener 1883
+
+listener 1883 localhost
 allow_anonymous true
+
+listener 8883
+allow_anonymous false
+require_certificate true
+use_identity_as_username true
+cafile /etc/mosquitto/certs/root.PEM
+certfile /etc/mosquitto/certs/broker.PEM
+keyfile /etc/mosquitto/certs/broker.key
+