Skip to main content
Participating Frequently
October 22, 2013
Question

Alternatives to SequreSocket on iOS

  • October 22, 2013
  • 2 replies
  • 799 views

Hello,

Our desktop application uses SecureSocket to communicate to the server side.

We are planning to go to mobile platforms. API docs say that SecureSocket is not available on iOS.

I was wondering why it is so and what workarounds could I use instead. Is it possible to do SSL socket with native extension?

Thank you in advance.

Regards,

Eugene

This topic has been closed for replies.

2 replies

Inspiring
November 13, 2013

We faced this very same problem and we ended up just using a normal socket with alot of encryption on what we were sending.... and then we also obfuscated our swfs.

http://code.google.com/p/as3crypto/

ChudesnoAuthor
Participating Frequently
November 14, 2013

Thank you for your feedback!

It could be the way to go for us.

I was thinking about using TLS socket from as3crypto. My concern is the performance. The native solution would be much faster. I did not make any CPU usage researches so far, however recall reading an article (in russian) which stated that SecureSocket is way faster. At least on desktop.

So, currently I need to decide between as3crypto and some custom ANE solution..

Will keep posting in this thread about the solution we end up with.

Regards,

Eugene

ChudesnoAuthor
Participating Frequently
December 6, 2013

We had tested as3crypto TLSSocket. The original src from googlecode have some parsing issues, so we borrow the tweeked version from Worlize/AS3WebSocket project. Still their TLSSocket seems to be unable to validate the certificates chain. However in our case we need to trust a particular known certificate instance, so building the chain to CA is not needed. We just plan to compare the public key we receive to what we expect from our server.

At this point the project got frozen as our customer decided to use HTML5 instead because of some internal reasons regardless our recommendations.

In any case, thank you for your help!

ChudesnoAuthor
Participating Frequently
November 11, 2013

I have added a feature request.

Please, vote to have this feature implemented.

https://bugbase.adobe.com/index.cfm?event=bug&id=3661336