• Register
0 votes

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

Please log in or register to answer this question.

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 115 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, 2020 jwilliam 3.9k points
0 votes
1 answer 57 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 157 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 95 views
Problem : After compiling my C# code I am getting below error: error: An unhandled exception of type 'System.Net.WebException' occurred in System.dll Additional information: The underlying connection was closed: An unexpected error occurred on a receive. At the line HttpWebResponse myResponse = (HttpWebResponse)myRequest.GetResponse(); please let me know if anybody has solution on it.
asked Jan 18, 2020 jwilliam 3.9k points
0 votes
1 answer 116 views
Problem : I have very simple program HelloWorld is running on iOS. The same program has been running fine for a long time. But recently I noticed that I get the below listed BoringSSL error when my program runs on my ... boringssl_session_errorlog: line 2871 [boringssl_session_read] SSL_ERROR_ZERO_RETURN(6): operation failed because the connection was cleanly shut down with a close_notify alert
asked Dec 4, 2019 alecxe 7.5k points
0 votes
1 answer 26 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, 2020 Raphael Pacheco 4.9k points
0 votes
1 answer 153 views
Problem : When I installed the final certificate I got the following error: keytool error: java.lang.Exception: Failed to establish chain from reply
asked Oct 23, 2019 peterlaw 6.9k points
0 votes
1 answer 20 views
7 I have a problem with these client and server codes, I keep getting the [Errno 10061] No connection could be made because the target machine actively refused it I'm running the server on a virtual machine with Windows XP SP3 and the client on Windows 7 64bit, my python version is ... msg) msg = s.recv(1024) print 'SERVER >> ', msg #s.close # Close the socket when done PS : code is from internet.
asked Oct 25, 2020 psandprop 2.4k points
0 votes
1 answer 657 views
Problem : I got an error on Xcode saying that there was no information about the view controller as follows: Could not insert new outlet connection: Could not find any information for the class named Why am I getting this error?
asked Nov 28, 2019 alecxe 7.5k points