简体   繁体   中英

TLS Implementation Silverlight

I am trying to implement TLS client in a Silverlight XMPP application.

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).

Here is for example a ClientHello message.

Can anyone share some tips or workarounds, or at least an example of how the ClientHello message should look in bytes?

I tried to sniff it out using WireShark, but it does not show the whole picture.

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,

https://github.com/mono/mono

As most Mono class library code is licensed under MIT/X11, it is safe to reuse them.

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. 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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