eclipse / paho.mqtt.m2mqtt

Eclipse Public License 1.0
517 stars 303 forks source link

Problems With SSL and ClientCert on Windows 10 IoT Core #24

Open toran73 opened 7 years ago

toran73 commented 7 years ago

Hello!

I actually left this as a reply to Paolos Article.. regarding using M2Mqtt for Windows 10 IoT Core. but I thought maybe this could be interesting for more people so I will ask this question here also.. Also, after some more investigation I think I better understand the problem and am rephrasing my question :)

I'm currently building a "Local Agent" for an Central IoT Solution using Raspberry and Windows 10 IoT Core. We already have a Mqtt Broker set up and it works great for several different clients including, iOS, Windows and ESP8266. To handle basic security we use SSL (TLS1.2 Protocol) with a bought certificate from a trusted certificate authoritym (Verisign) we have both a Server Cert and Client Cert and I guess its the latter that is the problem in this case because I can actually connect to the server but cant get the client to publish or subscribe to any topics..

When instantiating the MqttNetworkChannel on WinRT we dont even have the option of using clientcert.. We need this to get it to work with the Raspberry, can you tell me the reason why it is omitted from the WinRT options?

Is the X509Certificate objects not available for UWP applications? Yes I know! I should test it my self, but I currently do not have the possibility and really need your feedback.

Anyone have thoughts or a solution to this?

Best regards and Merry Christmas to all of you! Torbjörn Nilsson

asebak commented 6 years ago

Have the same issue as you, did you figure it out?

timkoers commented 6 years ago

Is there any solution yet?