Skip to content
This repository has been archived by the owner on Apr 10, 2021. It is now read-only.

iOS : ERROR:Request failed -> SSL - No CA Chain is set, but required to operate #43

Open
alanlanglois opened this issue Oct 25, 2017 · 8 comments

Comments

@alanlanglois
Copy link

Hi,
I'm using this library for a project compiling to HTML5, Android & iOS.
It works pretty well when targeting HTML5 & Android, but I'm having this error when targeting iOS:

AsyncHttp.hx:195: Yytx6ROf ERROR:Request failed -> SSL - No CA Chain is set, but required to operate
Is there something iOS specific I need to do/change/ask in order to make it work on iOS too?

Thx.

@yupswing
Copy link
Owner

can't test it right now but as you might imagine it's most likely not a problem related to akifox-asynchttp but more about Socket connections with SSL on iOS.

About the latter I can't really do anything.

@alanlanglois
Copy link
Author

Ok thx,
Do you know if there is a way to have SSL connexion on iOS using Haxe?

@PaulGene
Copy link

PaulGene commented Oct 27, 2017

Warning: SSL doesn't work 100% on Android either, I have some php code that sends back xml and if the xml is over a certain size I get errors ( the same xml loads perfectly fine over HTTP ) It seems we are pretty much stuck without working SSL in Haxe for the foreseeable future. I haven't tried this yet but this seems like the only option on iOS https://github.com/jiveui/openfl-ios-networking

**** UPDATE ****
I seem to have found a work around for this, i was using the HTTP/1.0 protocol because i ran into problem using HTTP/1.1 (which are now fixed)

With HTTP/1.1 the problem seems to go away 👍

@alanlanglois
Copy link
Author

Thank you @PaulGene
We use HTTPS, this lib doesn't seem to support it. :(

@PaulGene
Copy link

Arrgghh Its been linked on threads about SSL so i assumed it had support :(

@PaulGene
Copy link

PaulGene commented Nov 9, 2017

@alanlanglois I'm unable to test this as i cant build for iOS at the moment but somebody suggested the following:

try this setting in akifox
sys.ssl.Socket.DEFAULT_VERIFY_CERT = false;

try testing with that, and if that works then just remember to apply a certificate for your production use

Might be worth a shot...

@anissen
Copy link

anissen commented Apr 16, 2018

@PaulGene That works for me! Thanks a lot 👍

@PaulGene
Copy link

I can confirm this works for me too.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants