简体   繁体   English

带有Cloudflare的免费SSL(带有SNI)的离子失败

[英]Ion w/ Cloudflare free SSL (with SNI) fails with

I'm running into a bug in Ion that koush (the lead dev) thinks may be related to CloudFlare's use of SNI. 我遇到了Ion的一个错误,该错误由koush(首席开发人员)认为可能与CloudFlare对SNI的使用有关。 The bug was reported here: https://github.com/koush/ion/issues/559 该错误报告在这里: https : //github.com/koush/ion/issues/559

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). 我正在寻找一种可解决CloudFlare Free SSL的解决方法(Android的HttpClient也会失败;尽管我不确定是否是出于相同的原因)。

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

So, do you know of any workarounds to this bug? 因此,您知道此错误有任何解决方法吗?

You can disable the middleware that causes the problem by putting the following in your Application.onCreate method. 您可以通过在Application.onCreate方法中添加以下内容来禁用导致问题的中间件。

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

The bug is only in Google Play Services conscrypt. 该错误仅在Google Play服务conscrypt中存在。 Remove that line at a later time once GPS updates. GPS更新后,请稍后删除该行。

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. 禁用concrypt的缺点是,它还会禁用旧平台上的SPDY支持,并且它还是更新,更安全,更新的SSL堆栈。

Source 资源

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM