Hello,
I am trying to connect to external broker mosquitto running local on my computer using lib-mqtt-paho libray or local javascript on WebIQ. It works fine from WebIQ Designer by Open preview level, but when I run project from Open Browser Preview or WebIQ Runtime I got error: "paho-mqtt.js:1046 WebSocket connection to 'wss://192.168.1.103:8090/' failed" and paho onFailure errorCode return 7.
mosquitto.conf
listener 8090
protocol websockets
socket_domain ipv4
require_certificate true
use_identity_as_username true
cafile path_to_crt_file
keyfile path_to_server_key_file
certfile some_path_to_crt_file
tls_version tlsv1.2
and I can connect to broker via MQTT Explorer.
How can I upload certificates file to paho.MQTT.Client (lib-mqtt-paho)?
How can I upload certificates to WebIQ Runtime? I have tried uploading via WebDAV, but there is no WebIQ Runtime folder. Will it be enough to configure WebIQ Runtime listen port with certificates enough to connect to broker?