MQTT doesn't work on HTTPS server

We are facing an issue in MQTT connection on HTTPS server. Sometime it works fine and for a while it gets an error like below.

WebSocket connection with 'wss: // MYHOST: 8083 / mqtt' failed: failed to establish connection: net :: ERR_INSECURE_RESPONSE

Let me share my mosquitto.conf file with you.

pid_file / var / run / mosquitto.pid
persistence | persistence_location / var / lib / mosquitto /
log_dest file /var/log/mosquitto/mosquitto.log
include_dir / etc / mosquitto / conf.d
listener 1883

listener 8083
protocol websockets
certfile / etc / mosquitto / certs / myhost.crt
cafile / etc / mosquitto / certs / ca.crt
keyfile / etc / mosquitto / certs / myhost.key

My Mosquitto WebSocket config file:

host = 'MYHOST'; // hostname or IP address
port = 8083;
theme = 'THEME'; // theme to subscribe to
useTLS = true;
username = ";
password =" ";
path =" / mqtt "

cleansession = true,

Thank.

+3
websocket wss mosquitto


source to share


No one has answered this question yet

See similar questions:

0
Websocket doesn't work with SSL

or similar:

2
MQTT mosquitto - websocket implementation in javascript using mqttws31.js
2
How to connect MQTT to HTTPS server?
1
How do I enforce TLS in Mosquitto using websockets?
1
Bridges between mqtt intermediaries in meteor
1
MQTT broker Mosquitto error with TLS configuration
1
Mosquitto Secure Websites
1
Connecting to WSS without port
0
MQTT TLS on port 8883 and an open connection in 1883
0
How to share topics between two protocols in a mosquito
0
Mosquitto not working on TLS on the Raspberry Pi



All Articles
Loading...
X
Show
Funny
Dev
Pics