从iOS7迁移后,为什么iOS8 SSL请求会间歇性地失败? [英] Why iOS8 SSL requests fail intermittently after migration from iOS7?

查看:160
本文介绍了从iOS7迁移后,为什么iOS8 SSL请求会间歇性地失败?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个iOS应用程序,在iOS7上运行正常。现在我们在iOS8上测试它,当在iOS8下运行时,我们遇到了SSL问题。一些(但不是全部)SSL请求失败。所有请求都针对同一台服务器,SSL证书有效,可在桌面上运行,并且在同一个应用程序运行iOS7时有效。

I have an iOS app, which works fine on iOS7. Now we are testing it on iOS8, and when running under iOS8, we have SSL issues. Some (but not all) SSL requests fail. All requests are against the same server, with a SSL certificate that is valid, and works on desktop, and works when the same app is running iOS7.

我们的错误是获取是 kCFURLErrorSecureConnectionFailed ,Apple记录为:

The error we are getting is kCFURLErrorSecureConnectionFailed, which Apple documents to be:


安全连接失败一个未知的原因。

The secure connection failed for an unknown reason.

另外,我在控制台中登录了以下内容:

Also, I get the following logged in the console:


CFNetwork SSLHandshake失败(-9846)

CFNetwork SSLHandshake failed (-9846)

我们正在使用NSURLConnection。我们已经实现了连接:willSendRequestForAuthenticationChallenge ,但是当我们收到错误时它不会被调用。

We are using NSURLConnection. We have implemented connection: willSendRequestForAuthenticationChallenge, but it does not get called when we get the error.

有谁知道如果这是一个已知的iOS8问题?我的下一步是什么,找出这些请求失败的原因?

Do anyone know if this is a known iOS8 issue? What would be my next steps to finding out, why these requests fail?

推荐答案

实际上这是运行该站点的负载均衡器的固件中的一个错误。我们升级了固件,现在一切都按预期工作。

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

这篇关于从iOS7迁移后,为什么iOS8 SSL请求会间歇性地失败?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆