MQTT.js icon indicating copy to clipboard operation
MQTT.js copied to clipboard

Can MQTT.js use System trusted/ browser trusted ROOT CA to establish TLS connections over mqtt/websockets.

Open tn185075 opened this issue 3 years ago • 3 comments

This is more of a question.

tn185075 avatar Oct 29 '21 19:10 tn185075

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

jdiamond avatar Oct 29 '21 20:10 jdiamond

Can MQTT.js use browser trusted CA to establish a secure web socket connection with a MQTT broker?

tn185075 avatar Nov 05 '21 12:11 tn185075

So extending the node ca cert's can make mqtt.js establish secure web socket connection?

tn185075 avatar Nov 05 '21 12:11 tn185075

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.

github-actions[bot] avatar Nov 06 '22 02:11 github-actions[bot]

This issue was automatically closed due to inactivity.

github-actions[bot] avatar Nov 21 '22 02:11 github-actions[bot]