Monday, 9 September 2013

https from as3 air project to webservice using as3httpclientlib

https from as3 air project to webservice using as3httpclientlib

I am trying to change webservice implementation I have done over to use
HTTPS.
I have been using the as3httpclientlib
(https://code.google.com/p/as3httpclientlib/).
When I use a non-ssl endpoint it works as expected.
However when I use an SSL endpoint and version 1.3 as3crypt from the
downloads page (https://code.google.com/p/as3crypto/downloads/list) or the
included as3crypto-1_3_patched.swc I get the following:
I DONT KNOW HOW TO HANDLE DER stuff of TYPE 22
I DONT KNOW HOW TO HANDLE DER stuff of TYPE 22
I DONT KNOW HOW TO HANDLE DER stuff of TYPE 22
I DONT KNOW HOW TO HANDLE DER stuff of TYPE 22
I DONT KNOW HOW TO HANDLE DER stuff of TYPE 12
I DONT KNOW HOW TO HANDLE DER stuff of TYPE 22
I DONT KNOW HOW TO HANDLE DER stuff of TYPE 22
I DONT KNOW HOW TO HANDLE DER stuff of TYPE 22
I DONT KNOW HOW TO HANDLE DER stuff of TYPE 22
[Fault] exception, information=TypeError: Error #1009: Cannot access a
property or method of a null object reference.
With the traces originating from Line 123 of DER.as and the error from
line 225 of X509Certificate.as
https://code.google.com/p/as3crypto/source/browse/trunk/as3crypto/src/com/hurlant/crypto/cert/X509Certificate.as?spec=svn28&r=7
When I use the latest version of as3crypt
https://code.google.com/p/as3crypto/source/detail?r=28 I get
[Fault] exception, information=Error: couldn't parse DER stream.
Thrown from line 23 of
https://code.google.com/p/as3crypto/source/browse/trunk/as3crypto/src/com/hurlant/util/asn1/type/SetType.as
The webservice I am trying to access is on azurewebsites, so will be using
the *.azurewebsites.net certificate.
I am also using the ASC2 compiler, this caused a couple of bugs which I
had to fix in the crypto project including changing if (hex.length&1==1)
hex="0"+hex; to if ((hex.length&1)==1) hex="0"+hex; which I found posted
here com.hurlant.util.hex syntax error on air sdk 3.5
Does anyone know why I am getting these errors and how I can fix them?

No comments:

Post a Comment