简体   繁体   English

TLS实施Silverlight

[英]TLS Implementation Silverlight

I am trying to implement TLS client in a Silverlight XMPP application. 我正在尝试在Silverlight XMPP应用程序中实现TLS客户端。

I found a nice documentation about TLS at tools.ietf.org , there are a good explanation of structures, but I can't find an explanations of how to convert these strunctures into a raw message (bytes). 我在tools.ietf.org上找到了一份有关TLS的不错的文档,其中对结构进行了很好的说明,但是找不到如何将这些结构转换为原始消息(字节)的说明。

Here is for example a ClientHello message. 例如,这是ClientHello消息。

Can anyone share some tips or workarounds, or at least an example of how the ClientHello message should look in bytes? 任何人都可以分享一些提示或解决方法,或者至少一个有关ClientHello消息应如何以字节显示的示例吗?

I tried to sniff it out using WireShark, but it does not show the whole picture. 我试图使用WireShark嗅探它,但它不能显示整个图片。

If something is in full .NET Framework, and does not present in Silverlight, the first option for you is to go to Mono code base and find a way to port it, 如果某些内容完全位于.NET Framework中,而Silverlight中没有,则您的第一个选择是转到Mono代码库,并找到一种移植方法,

https://github.com/mono/mono https://github.com/mono/mono

As most Mono class library code is licensed under MIT/X11, it is safe to reuse them. 由于大多数Mono类库代码都是根据MIT / X11许可的,因此可以安全地重用它们。

Starting from scratch like you did is not recommended if you've never done similar things before. 如果您以前从未做过类似的事情,则不建议像您一样从头开始。

TLS is not a trivial thing to implement. TLS并非易事。 Unless you have specific reasons to do this, it's wiser to use existing implementation. 除非您有特定的原因,否则使用现有的实现是更明智的。 You can use Mono as suggested above and port its code, or you can use SSL/TLS classes of our SecureBlackbox library, which is available for Silverlight as well, and doesn't require any extra coding from you. 您可以按照上面的建议使用Mono并移植其代码,也可以使用我们的SecureBlackbox库的SSL / TLS类,该类也可用于Silverlight,并且不需要您进行任何额外的编码。

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

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