简体   繁体   English

.Net Compact Framework 中的 SSL SSLstream 支持

[英]SSL SSlstream Support in .Net Compact Framework

Im working on WinCE 2013 and want to use mqtt protocol with SSL/TLS.我正在使用 WinCE 2013 并希望使用带有 SSL/TLS 的 mqtt 协议。 But it seems like that the SSL StreamCLass is not supported in .Net CF3.9.但似乎 .Net CF3.9 不支持 SSL StreamCLass。 Could anyone please let me know if there is anyway the SSL/TLS can be enabled in .NCF3.9 for communication.任何人都可以让我知道是否可以在 .NCF3.9 中启用 SSL/TLS 进行通信。 I want to use the SSL Stream class and the我想使用 SSL Stream 类和

using System.Net.Security;
using System.Security.Authentication;

but couldnt do so...但不能这样做...

看看: https ://m2mqtt.wordpress.com/ 这是一个随时可用的 MQTT 实现,如果它不符合您的需求,您至少可以看看 SSL 在 .NET CF 中是如何实现的。

In order to enable SSL/TLS on M2Mqtt you need to define SSL symbol.为了在 M2Mqtt 上启用 SSL/TLS,您需要定义 SSL 符号。 For example, if you see the Net MF 4.3 project file ( https://github.com/eclipse/paho.mqtt.m2mqtt/blob/master/M2Mqtt/M2Mqtt.NetMf43.csproj ) there is this section :例如,如果您看到 Net MF 4.3 项目文件 ( https://github.com/eclipse/paho.mqtt.m2mqtt/blob/master/M2Mqtt/M2Mqtt.NetMf43.csproj ),则有以下部分:

<DefineConstants>DEBUG;TRACE,MF_FRAMEWORK_VERSION_V4_3,SSL</DefineConstants>

As you can see there is the SSL symbol.如您所见,有 SSL 符号。 It enables the build with SSL support.它启用具有 SSL 支持的构建。

I added OPENSSL suppport for Compact Framework 2.0 / 3.5 / 3.9 in M2MQTT library.我在 M2MQTT 库中为 Compact Framework 2.0 / 3.5 / 3.9 添加了 OPENSSL 支持。 Check https://github.com/bpastore/paho.mqtt.m2mqtt/tree/dev检查https://github.com/bpastore/paho.mqtt.m2mqtt/tree/dev

I am having the same issue in NETCF3.5 and when I tried to open this link for the solution it is now gone: 我在NETCF3.5中遇到了同样的问题,当我尝试为该解决方案打开此链接时,它现在消失了:

I added OPENSSL support for Compact Framework 2.0 / 3.5 / 3.9 in M2MQTT library. 我在M2MQTT库中添加了对Compact Framework 2.0 / 3.5 / 3.9的OPENSSL支持。 Check https://github.com/bpastore/paho.mqtt.m2mqtt/tree/dev 检查https://github.com/bpastore/paho.mqtt.m2mqtt/tree/dev

I am running WEC7 with netcf3.5 but I need to add encryption. 我正在使用netcf3.5运行WEC7,但是我需要添加加密。 Anybody help on this??? 有人对此提供帮助吗?

Thanks in advance, Jeff 预先感谢杰夫

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM