xamarin / mqtt

Minimalist and intuitive MQTT broker and client written entirely in C#

Home Page:http://xamarin.github.io/mqtt

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Does xamarin / mqtt support TLS?

jhalbrecht opened this issue · comments

Does xamarin / mqtt support TLS?

If so is there a sample?

Do you find a solution but Xamarin and MQTT SSL?
Thanks

Check out jhalbrecht/XamarinFormsMqttSample I just got a sample app working that demonstrates connecting to a mosquitto broker with a CA signed server certificate. I've connected to iot.eclipse.org on 8883 and my own mosquitto broker with a letsencrypt cert.

The repository also has several mosquitto_pub/sub examples as well as several python examples that programmatically accomplish the same goal.

The sample works off of various of the M2Mqtt forks for .net standard. I use the one by @mohaqeq mohaqeq/paho.mqtt.m2mqtt This NuGet works fine. M2MqttDotnetCore 1.0.8

I have a branch in the repository that uses this xamarin / mqtt client, but as far as I can tell this client doesn't support TLS.

Thanks for you suggestions.
We test you example and connect perfect to some public broker wiht SSL /TLS
I test in my 2 broker and we cant connect with you example. I try to use ca.cert and ca.pfx and nothing dont connect.
So if use desktop app like MQTTBOX, we connect with certificate files, and if we connet with MQTT.FX we connect with ca.cert file.

Then i think that there are a problem in the broker configuracion.
How can check that the broker meets the requirements to work with your application??
Thanks for advance