shehankonecranes / sp-react-native-mqtt

MQTT Client native module for react-native
68 stars 55 forks source link

Certificate based connexion #2

Open tanguy-roberjot opened 4 years ago

tanguy-roberjot commented 4 years ago

Hi ! Is there a way to pass options like key, cert and ca to open a certificate based connection with this library like in this example of the mqtt.js library : https://github.com/mqttjs/MQTT.js/blob/master/examples/tls%20client/mqttclient.js ? I managed to implement this on react native but it opens a wss connection and not mqqt over tcp.

FrozenPyrozen commented 3 years ago

@tanguy-roberjot do you find some solutions?

ravindranpandu commented 3 years ago

@tanguy-roberjot I am also looking for certificate/key based auth did you mange solve this by any chance?

koten551 commented 2 years ago

using my fork bro. I just added certificate(.p12) koten551/sp-react-native-mqtt reading my docs for more infomation