• Register
0 votes
96 views

Problem :

Since I upgraded the existing project with the iOS 9, I keep getting the below error :

“An SSL error has occurred and a secure connection to the server cannot be made.”

6 5 3
7,540 points

1 Answer

0 votes

Solution :

It appears as if the iOS 9.0.2 is breaking requests to valid HTTPS endpoints. My current thought is that it is needing SHA-256 certs or it fails with above error.

To reproduce, just inspect the UIWebView with safari, and try to navigate to the arbitrary HTTPS endpoint as shown below :

location.href = "https://d37gvrvc0wt4s1.cloudfront.net/js/v1.4/rollbar.min.js"// [Error] Failed to load resource: An SSL error has occurred and a secure connection to the server cannot be made. (rollbar.min.js, line 0)

Now try to go to google as of course they have the SHA-256 cert:

location.href = "https://google.com"// no problemo

So adding the exception to transport the security will work to fix this. I also think that completely disabling the  NSAppTransportSecurity would also work , though I have also read that by completely disabling it can jeopardize the app review.

[ have found that by simply enumerating your domains I am trying to connect to your NSExceptionDomains dict it fixes your problem, even when by leaving NSExceptionAllowsInsecureHTTPLoads set to true.

I hope this helps you in resolving your issue.

9 7 4
38,600 points

Related questions

0 votes
1 answer 66 views
66 views
Problem : I have recently installed a website on my local machine using IIS 7 successfully. But when I tried to deploy it on the live server, I got a following error: "The page cannot be displayed because an internal server error has occurred" Nothing else. Using a same IIS 7 on live and also set to have the Detailed errors in Error Pages module, but still getting a same. What can be the reason?
asked Jan 28 jwilliam 3.9k points
0 votes
1 answer 54 views
54 views
Problem : I guess Chrome have released an update over the past week. And this update has caused at least 100 of our internal applications to throw the exception shown below. The solutions I have found over the Internet, talk about updating the ... there anyone who is aware of a similar fix in Chrome? Error Server has a weak ephemeral Diffie-Hellman public key ERR_SSL_WEAK_SERVER_EPHEMERAL_DH_KEY
asked Nov 25, 2019 alecxe 7.5k points
0 votes
1 answer 133 views
133 views
Problem : I can push by clone project using ssh but it is not working for me getting following error server certificate verification failed. cafile: /etc/ssl/certs/ca-certificates.crt crlfile: none
asked Nov 12, 2019 peterlaw 6.9k points
0 votes
1 answer 15 views
15 views
Problem: I have already spent many days trying to launch my Android program. Even the "Hello World" program gives me the below error: "The connection to adb is down, and a severe error has occurred". I am currently running the Eclipse v3.5 (Galileo) and ... for me. Can someone tell me the magic combination of versions of Eclipse, Java, ADB, emulator, and whatever else which can work together?
asked Aug 5 Raphael Pacheco 4.9k points