Why are iOS8 SSL requests interrupted with the transition from iOS7?

I have an iOS app that works great on iOS7. Now we are testing it on iOS8, and when working under iOS8 we have problems with SSL. Some (but not all) SSL requests fail. All requests refer to the same server with an SSL certificate, which is valid and works on the desktop, and works when the same application starts iOS7.

The error we get is kCFURLErrorSecureConnectionFailed , for which Apple is:

A secure connection ended for an unknown reason.

In addition, I launched the following console:

CFNetwork SSLHandshake Error (-9846)

We use NSURLConnection. We implemented connection: willSendRequestForAuthenticationChallenge , but it is not called when we get an error.

Does anyone know if this is a known issue of iOS8? What will be my next steps to find out why these requests fail?

+6
source share
2 answers

This turned out to be actually a bug in the firmware for loadbalancer launching the site. We updated the firmware, and now everything works as expected.

+1
source

The error you see is a SecureTransport error. Error -9846 is equal to errSSLBadRecordMac . This is a transport layer error in the SSL mechanism and is usually caused by an implementation error - Apple, not yours in this case. Please reduce it to a test case and report an error:

https://bugreport.apple.com

+5
source

Source: https://habr.com/ru/post/974213/


All Articles