When I build with 2015.2722 and iOS9 SDK and put it onto my device (running iOS 9.0.0) I get an error when trying to call this endpoint. I understand the the ATS restrictions on iOS9, but this is a major aws end point - not sure how it could be considered insecure?
\<Warning\>: ERROR: network request failed: https://sdb.eu-west-1.amazonaws.com/ [-1200: An SSL error has occurred and a secure connection to the server cannot be made.]
Is it possible to drop back to the old 8.4 SDK?
Alex10
September 25, 2015, 3:18pm
2
rob
September 26, 2015, 2:24am
3
It likely is a certificate problem at Amazon. There are some ATS options that tell it to work with certificate problems.
Rob
Hmm, OK thanks I’ll put in an exception for now.
If I have to roll back to the old SDK in the short term, how do I do that?
rob
September 26, 2015, 2:47am
5
You would have to find an install of Xcode 6.4 to roll back to a version of Corona SDK before 2702.
Rob
OK thanks Rob.
I put in an exception for that AWS url…
NSAppTransportSecurity = { NSExceptionDomains = { ["sdb.eu-west-1.amazonaws.com"] = { NSIncludesSubdomains = true, NSThirdPartyExceptionAllowsInsecureHTTPLoads = true }, }, }
but it’s still throwing an error…
ERROR: network request failed: https://sdb.eu-west-1.amazonaws.com/ [-1200: An SSL error has occurred and a secure connection to the server cannot be made.]
I fixed it.
This doc is great: https://coronalabs.com/blog/2015/09/17/about-app-transport-security-ats/
But it only includes the exception for https. Turns out you can also include a min TLS version, and also an exception for the forward secrecy ciphers.
There is a good apple doc here: https://developer.apple.com/library/prerelease/ios/technotes/App-Transport-Security-Technote/index.html
This is what I ended up using (the forward ciphers were the issue for me):
NSAppTransportSecurity = { NSExceptionDomains = { ["sdb.eu-west-1.amazonaws.com"] = { NSIncludesSubdomains = true, NSThirdPartyExceptionRequiresForwardSecrecy = false }, }, },
Alex10
September 25, 2015, 3:18pm
8
rob
September 26, 2015, 2:24am
9
It likely is a certificate problem at Amazon. There are some ATS options that tell it to work with certificate problems.
Rob
Hmm, OK thanks I’ll put in an exception for now.
If I have to roll back to the old SDK in the short term, how do I do that?
rob
September 26, 2015, 2:47am
11
You would have to find an install of Xcode 6.4 to roll back to a version of Corona SDK before 2702.
Rob
OK thanks Rob.
I put in an exception for that AWS url…
NSAppTransportSecurity = { NSExceptionDomains = { ["sdb.eu-west-1.amazonaws.com"] = { NSIncludesSubdomains = true, NSThirdPartyExceptionAllowsInsecureHTTPLoads = true }, }, }
but it’s still throwing an error…
ERROR: network request failed: https://sdb.eu-west-1.amazonaws.com/ [-1200: An SSL error has occurred and a secure connection to the server cannot be made.]
I fixed it.
This doc is great: https://coronalabs.com/blog/2015/09/17/about-app-transport-security-ats/
But it only includes the exception for https. Turns out you can also include a min TLS version, and also an exception for the forward secrecy ciphers.
There is a good apple doc here: https://developer.apple.com/library/prerelease/ios/technotes/App-Transport-Security-Technote/index.html
This is what I ended up using (the forward ciphers were the issue for me):
NSAppTransportSecurity = { NSExceptionDomains = { ["sdb.eu-west-1.amazonaws.com"] = { NSIncludesSubdomains = true, NSThirdPartyExceptionRequiresForwardSecrecy = false }, }, },