This problem has nothing to do with SSL, as long as you are not using secure connections.
The library does not work with Netduino1plus and 2 plus because of "Environment.TickCount". This throws the "'System.NotSupportedException". Somehow it's not available on Netduino platform but it's included in .net micro framework.
If you still want to use the library replace all "Environment.TickCount" with "(Int32)(DateTime.Now.Ticks / TimeSpan.TicksPerMillisecond)". There are 11 replacements to be done. After this the M2Mqtt library works fine.
- TechnoGuy likes this