本文介绍了Android SSL - SNI 支持的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想了解 Android SDK 中对 SSL/TLS 服务器名称指示 (SNI) 扩展的支持.
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:
- 由于 Gingerbread 发布了带有
HttpsURLConnection
API 的 TLS 连接,因此支持 SNI. - Android 附带的 Apache HTTP 客户端库不支持 SNI
- Android 网络浏览器也不支持 SNI(因为使用了 Apache HTTP 客户端 API)
- Since the Gingerbread release TLS connection with the
HttpsURLConnection
API supports SNI. - Apache HTTP client library shipped with Android does not support SNI
- The Android web browser does not support SNI neither (since using the Apache HTTP client API)
Android 错误跟踪器中有一个关于此问题的已开票.
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 支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!