MQTT.js
MQTT.js copied to clipboard
Can MQTT.js use System trusted/ browser trusted ROOT CA to establish TLS connections over mqtt/websockets.
This is more of a question.
When running in a browser, the browser creates the TLS connections and you cannot override the CAs so you can only use what the browser trusts.
When running in Node.js, you can override the default CAs but there is no easy option to just tell it to use the system CAs.
MQTT.js just passes options to the core tls module that comes with Node.js. See the options here: https://nodejs.org/dist/latest-v16.x/docs/api/tls.html#tlscreatesecurecontextoptions
Can MQTT.js use browser trusted CA to establish a secure web socket connection with a MQTT broker?
So extending the node ca cert's can make mqtt.js
establish secure web socket connection?
This is an automated message to let you know that this issue has gone 365 days without any activity. In order to ensure that we work on issues that still matter, this issue will be closed in 14 days.
If this issue is still important, you can simply comment with a "bump" to keep it open.
Thank you for your contribution.
This issue was automatically closed due to inactivity.