我正在尝试通过我的 Mosquitto 和另一个位于大学服务器上的使用 SSL 和 CA 来创建一个加密桥。但是自从我启动 Mosquitto 后,代理开始发送 CONNECT 包,没有收到任何响应,进入循环。
这是我的配置文件:
allow_anonymous false
password_file C:\Program Files\mosquitto\mosquitto.pwd
cafile C:\Program Files\mosquitto\certs\ca.crt
certfile C:\Program Files\mosquitto\certs\server.crt
keyfile C:\Program Files\mosquitto\certs\server.key
tls_version tlsv1.2
require_certificate true
port 8883
use_identity_as_username false
connection bridge-01
address xxxxxxxxxx:8883
topic # out 0
topic # in 0
bridge_certfile C:\Program Files\mosquitto\certs\bridge.crt
try_private true
这是终端的输出:
1617615750: Client local.yyyyyyy.bridge-01 closed its connection.
1617615756: Bridge local.yyyyyyy.bridge-01 doing local SUBSCRIBE on topic #
1617615756: Connecting bridge bridge-01 (xxxxxxxxx:8883)
1617615756: Bridge yyyyyyy.bridge-01 sending CONNECT
1617615777: Client local.yyyyyyy.bridge-01 closed its connection.
1617615783: Bridge local.yyyyyyy.bridge-01 doing local SUBSCRIBE on topic #
1617615783: Connecting bridge bridge-01 (xxxxxxxxx:8883)
1617615783: Bridge yyyyyyy.bridge-01 sending CONNECT
1617615804: Client local.yyyyyyy.bridge-01 closed its connection.
有什么建议么?
更新
老师忘记启用8883端口...解决掌脸