8 Replies Latest reply on Mar 10, 2013 5:25 AM by jaybe75

    SSL WebService?


      tl;dr: I cannot connect to my SSL web service using a captive runtime app on Android, but I can with an AIR runtime or captive on iOS. 


      I'm using a common code base to develop an Android tablet and iPad app.  It connects to an SSL (https) web service to get data.  It works fine in debug mode, and when I compile, it works fine on the iPad, but not on the Android in a captive runtime build.  If I use the AIR runtime build, it works, but I want my app to be stand-alone.




        • 1. Re: SSL WebService?
          Gaius Coffey Level 2

          Just a guess, but are all your certs for the ssl valid?

          I think some mobile os block communication with bad certs sometimes.


          • 2. Re: SSL WebService?
            natekemp21 Level 1

            That's possible, how would I check?  The SSL webservice works fine when I compile the Android app with Adobe AIR, just not when I compile it in a captive runtime.

            • 3. Re: SSL WebService?
              Rode Indiaan

              I'm having the exact same problem!


              When debugging everything works. All other devices (BlackBerry and IOS) work. When I build it with the shared runtime it works. But if I build it with captive runtime it fails to connect over HTTPS! As soon as I change it to HTTP (without the S) it works so it is definately a HTTP vs HTTPS issue in combination with captive runtime.


              Did you ever find a solution for this problem?

              • 4. Re: SSL WebService?
                Rode Indiaan Level 1

                It is also not a version issue.


                I tried installing the exact same version of Adobe AIR that would get bundled as captive runtime. It would work perfectly.

                Then I even bundled a newer version of the AIR runtime ( instead of and still it didn't work.


                In conclusion: The error only occurs when using HTTPS (SSL) in combination with captive runtime, regardless of the AIR runtime version.


                Really hoping someone can solve this problem, because we would like to include the runtime to prevent our customers from installing the runtime and ensuring the correct runtime is used.

                • 5. Re: SSL WebService?

                  Has anyone found a solution for this issue?


                  I am running into this on an Air Desktop (Winodow7 and 8) application also. Then the application is compiled and packaged with a native installer or just run from the debugger my WebService calls operate normally. When I package as Captive runtime all webService request fail with a '[FaultEvent fault=[RPC Fault faultString="HTTP request error" faultCode="Server.Error.Request" faultDetail="null"] messageId="AB6FDB00-1EFA-9506-E571-5D3B71FE2865" type="fault" bubbles=false cancelable=true eventPhase=2]'.

                  • 6. Re: SSL WebService?
                    Rode Indiaan Level 1

                    We were able to compile an Air Desktop application with captive runtime and could still use Webserverices over SSL. Our solution might be a side effect of creating a version that requires no installation at all.


                    1. Create signed AIR Desktop version
                    2. Build a bundle from the AIR verion: "C:\Program Files (x86)\Adobe\Adobe Flash Builder 4.6\sdks\4.6.0\bin\adt" -package -target bundle myApp myApp.air
                    3. Hide all files except the exe
                    4. Create a self-extracting archive from the directory


                    Now any user can run the application without any administrator rights normally required for installation.

                    • 7. Re: SSL WebService?
                      jgrasmeder Level 1

                      Thanks for the reply. Unfortunalty I am using ANEs in my project so can not use the AIR package option. I also can't use the native installer because I need (may need) to install addtioanl code from Microsoft (vcredist_x86.exe, etc..)  I think I need to speak with someone from Adobe about getting the captive runtime working correctly. I am thinking that the Air runtime that is downloaded from there web site is different from the one that is used when the Captive option is chosen.

                      • 8. Re: SSL WebService?
                        jaybe75 Level 1

                        I think I found a solution to this issue. Using latest IntelliJ 12.1 (EAP 128.101) lets you add the latest Air3.6SDK (Support for Adobe Gaming SDK) rather then the Flex SDK. Making builds  through IntelliJ with captive runtime checkbox ticked, gives me an apk that when installed on my device(s) can consume ssl (https) web services. I use a ssl-certificate signed by GlobalSign on my server side and it works lika a charm since their Root CA Certificate is included by default in most devices if not all.