带有Cloudflare的免费SSL(带有SNI)的离子失败 [英] Ion w/ Cloudflare free SSL (with SNI) fails with

查看:169
本文介绍了带有Cloudflare的免费SSL(带有SNI)的离子失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到了Iush中的一个错误,koush(首席开发人员)认为该错误可能与CloudFlare对SNI的使用有关.该错误已在此处报告: https://github.com/koush/ion/issues/559

I'm running into a bug in Ion that koush (the lead dev) thinks may be related to CloudFlare's use of SNI. The bug was reported here: https://github.com/koush/ion/issues/559

我正在寻找一种可以解决CloudFlare Free SSL的解决方法(Android的HttpClient也会失败;尽管我不确定是否是出于相同的原因).

I'm looking for a workaround that can deal with CloudFlare Free SSL (Android's HttpClient also fails; though I'm not sure if it is for the same reason).

理想情况下,我只想使用一种与Ion配合使用的解决方法,但是如果您知道另一个通过CloudFlare Free SSL连接发送和接收数据的库或方法,我会很乐意使用它!

Ideally, I'd like to just use a workaround working with Ion, but if you know of another library or method to send and receive data over a CloudFlare Free SSL connection I'll gladly use it instead!

那么,您知道此错误有任何解决方法吗?

So, do you know of any workarounds to this bug?

推荐答案

您可以通过放置导致问题的中间件来禁用 在Application.onCreate方法中进行以下操作.

You can disable the middleware that causes the problem by putting the following in your Application.onCreate method.

 Ion.getDefault(getContext()).getConscryptMiddleware().enable(false);

该错误仅在Google Play服务conscrypt中存在.删除该行 GPS更新后,稍后的时间.

The bug is only in Google Play Services conscrypt. Remove that line at a later time once GPS updates.

禁用concrypt的缺点是,它还会在较旧的平台上禁用SPDY支持,并且它也是更新,更安全,更新的SSL堆栈.

The downside of disabling conscrypt is that it also disables SPDY support on older platforms and that it is also a newer, more secure, updated SSL stack.

来源

这篇关于带有Cloudflare的免费SSL(带有SNI)的离子失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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