eclipse / paho.mqtt.m2mqtt

Eclipse Public License 1.0
512 stars 303 forks source link

"SslProtocols" does not contain a definition for 'Tls12' when running the Mono project. #58

Open Harikrishnav21 opened 6 years ago

Harikrishnav21 commented 6 years ago

Is Tlsv1.2 is supporting in mono? Next, Currently, resolved the build error with System.Security.Authentication namespace, but here it is saying sslv1.2 is unsupported. reference link https://developer.xamarin.com/api/field/System.Security.Authentication.SslProtocols.Tls12/

Any clues how to overcome this, in Xamarin.Android, here I need to interact AWS IOT from Xamarin.Android.

owencyc commented 6 years ago

maybe .net framework 4.5 works

JensNordenbro commented 6 years ago

maybe the not accepted .net standard builds work? (with a new mono supporting .net standard?)

Harikrishnav21 commented 6 years ago

Mono supporting TLS V1.2. In xamarin.andriod project options set HTTP Client handler as Native Handler And SSL/TLS version to TLSV1.2 then you should be able to communicate through TLS1.2. And this worked in my case, I am able to communicate with AWS MQTT based out of TLS V1.2.