meteor-mqtt-collection icon indicating copy to clipboard operation
meteor-mqtt-collection copied to clipboard

TLS? and certificates

Open rogueturnip opened this issue 9 years ago • 3 comments

Has anyone gotten this working using TLS or client certificates? I can't see any directions to get this working.

rogueturnip avatar Sep 14 '16 18:09 rogueturnip

Sorry, I don't know how.

perak avatar Sep 14 '16 19:09 perak

looks like it might be in the mqtt.js include. mqtts uses the mqtt over tls, the ws is web sockets and wss is websockets secure.

Connects to the broker specified by the given url and options and returns a Client.

The URL can be on the following protocols: 'mqtt', 'mqtts', 'tcp', 'tls', 'ws', 'wss'. The URL can also be an object as returned by URL.parse(), in that case the two objects are merged, i.e. you can pass a single object with both the URL and the connect options.

You can also specify a servers options with content: [{ host: 'localhost', port: 1883 }, ... ], in that case that array is iterated at every connect.

For all MQTT-related options, see the Client constructor.

rogueturnip avatar Sep 14 '16 19:09 rogueturnip

http://www.hivemq.com/blog/mqtt-client-library-mqtt-js

Has a great example of using the mqtt library for certificate based connections.

rogueturnip avatar Sep 14 '16 20:09 rogueturnip