本文介绍了Android的SSL - SNI支持的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道有关的SSL / TLS服务器名称指示(SNI)扩展在Android SDK的支持。

I would like to know about the support for the SSL/TLS Server Name Indication (SNI) extension in the Android SDK.

推荐答案

据我所知,有一个部分支持Android的SDK。目前的情况是这样的:

As far as I know, there is a partial support in Android SDK. The current situation is the following:

  1. 由于姜饼的与 HttpsURLConnection API发布TLS连接支持SNI。
  2. 随Android不支持SNI的Apache HTTP客户端库
  3. 在Android的网页浏览器不支持SNI没有(因为使用Apache HTTP客户端API)
  1. Since the Gingerbread release TLS connection with the HttpsURLConnection API supports SNI.
  2. Apache HTTP client library shipped with Android does not support SNI
  3. The Android web browser does not support SNI neither (since using the Apache HTTP client API)

有一个开售票就这个问题在Android的bug跟踪器。

There is an opened ticket regarding this issue in the Android bug tracker.

也可以通过这个URL的连接测试SNI支持: https://sni.velox.ch/

It is also possible to test the SNI support by making a connection to this URL: https://sni.velox.ch/

这篇关于Android的SSL - SNI支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-01 19:38