Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does Windows Phone 7.1 support SSL sockets?

I can't find a definitive answer on this, but a the moment I'm guessing not. If not, is there any possible workaround other than proxying via a server?

By way of interest, I'm just trying to connect to Gmail imap for a small test application...

like image 478
LJW Avatar asked Nov 21 '11 18:11

LJW


1 Answers

No, WP7.1 does not support SSL sockets.

Edit
Typically you would use SslStream to implement SSL over TCP. Unfortunately, SslStream is not available in Silverlight or WP7. You have to roll your own (which is a bad idea, but possible), or use a third party library.

As mentioned by Eugene, there's SecureBlackbox, but that's more than a thousand dollars (minimum, depending on your many license choices) to use in a commercial product. If you're doing this on your own, that's probably too big an upfront cost. If you're doing this for your company, it might be a route to consider.

Another option might be to try to use BouncyCastle in WP7, however BouncyCastle doesn't currently release WP7 compatible binaries and may rely on framework items not available in WP7. This blog entry implies it might be possible, but will require some tweaking.

If you're a solo dev, I'd recommend at least trying BouncyCastle before considering SecureBlackbox. If you're doing your company's WP7 app offering, start with SecureBlackbox.

like image 119
Randolpho Avatar answered Sep 22 '22 10:09

Randolpho