Open bkrajendra opened 6 years ago
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.
How to add certificate can you show the working code
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.
@arcoirislabs any news about ssl support?
Any news about SSL support mqtts?