We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi! Is there a way to establish a connection with a broker who requires the mqtts protocol and a certificate for the authentication?
Thanks, Michele.
The text was updated successfully, but these errors were encountered:
Hey !
In the angular-mqtt module, we have to switch from ws:// to wss:// and provide the certificates in the config object as indicated here : https://github.com/mqttjs/MQTT.js#mqttclientstreambuilder-options
it should be something like :
let mqttclient = { config: { ip: '192.168.1.211', port: 10001, qos: 1, retain: true }, options: { wsOptions: { cert: "certificate content", key: "private key content", ca: "ca certificate content" } } };
and add this options object to the mqtt.connect( url, options ) function.
We should analyse where is the security risk in this method, it depends if your web app is public or not.
I don't really have the time to develop and test this option but I'd be really glad to receive a pull request !
thanks for your interest :-)
Sorry, something went wrong.
No branches or pull requests
Hi!
Is there a way to establish a connection with a broker who requires the mqtts protocol and a certificate for the authentication?
Thanks,
Michele.
The text was updated successfully, but these errors were encountered: