mqttjs / MQTT.js

The MQTT client for Node.js and the browser
Other
8.6k stars 1.42k forks source link

ssl/tls via websocket #1339

Open bene40 opened 3 years ago

bene40 commented 3 years ago

II am trying to connect to a mqtt server with tls on websocket. I can with the client for macos MQTTX, with the attached configuration (note that I didn't have to specify the certificates), but I can't do it with mqttjs via browser, always the error related to the certificates. How it's possible?

Schermata 2021-10-13 alle 14 33 28
YoDaMa commented 3 years ago

Let's try to repro this and figure out the issue. Certs are finnicky sometimes.

ridomin commented 2 years ago

I'm having the exact same issue. Any progress?

Note that I can connect using secure web sockets from node, but not from the browser.

DuyNT222054M commented 1 year ago

I have same isssue, how can i fix it

ZKUTF-8 commented 1 year ago

我有同样的问题,我该如何解决,有进展吗