cordova-plugin-mqtt icon indicating copy to clipboard operation
cordova-plugin-mqtt copied to clipboard

Any news about SSL support mqtts?

Open bkrajendra opened this issue 7 years ago • 4 comments

Any news about SSL support mqtts?

bkrajendra avatar Feb 23 '18 13:02 bkrajendra

SSL is working fine with me without any major change. i made some change in cordova-plugin-mqtt.js Just change url to url:"ssl://mqtt.iocarehost.com" Aso uncommented : var urgx = /(^(tcp|ssl|local)&?:\/\/[^\@_?!]+[^\s]+[^\.]+\:\d{2,})/g; Also changed line no 110 to

                if (args.url.split("ssl://").length > 1) {
                    client = new Paho.MQTT.Client(args.url.split("ssl://")[1], Number(args.wsPort), args.urlPath||"/ws", args.clientId);
                }

as i only need ssl to work. It might be needed to check ssl option here and accordingly set connect function.

bkrajendra avatar Aug 25 '18 10:08 bkrajendra

How to add certificate can you show the working code

praveen1207 avatar Jan 31 '19 17:01 praveen1207

Im not using any client side certificate. My mqtt broker only need u to specify that connection is . No need to provide any client certificate. Most broker are same way. try it.

bkrajendra avatar Feb 01 '19 04:02 bkrajendra

@arcoirislabs any news about ssl support?

adrianmihaila avatar Apr 09 '19 16:04 adrianmihaila