Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[paho-dev] Issue faced when using M2Mqtt client with WinRT application

Hi,

 

I need to connect to IBM MessageSight  Server from WinRT application.

Downloaded the M2Mqtt source project and referred in my application.

 

Client is initialized as

client = new MqttClient(host, port,false);

 

Connect method is called as

client.Connect(clientId, userName, token, true, 10);

 

An exception saying “An existing connection was forcibly closed by the remote host” is thrown.

This happens in the Receive(byte[] buffer, int timeout) method of MqttNetworkChannel class.

 

If client is initialzed with secure parameter set to true MqttClient(host, port,true) the below exception is thrown.

“A certificate chain processed, but terminated in a root certificate which is not trusted by the trust provider”

 

This I got when I debugged the MqttClient. For WinRT application do we need a CA certificate to be installed on client?

 

What am I missing? For WinRT is there a way to ignore certificate and  connect to the server.

Please help. I have already spend couple of days with this issue and now it has become a blocker for me to proceed with my application implementation.

 

Please let me know what is the right approach when connecting to IBM MessageSight from a Windows 8.1 app on tablet using the Paho client.

 

Thanks in advance.

 

Regards,

Seena L.S.

 


Back to the top