I would like to know about the support for the SSL/TLS Server Name Indication (SNI) extension in the Android SDK.
相关问题
- How can I create this custom Bottom Navigation on
- Bottom Navigation View gets Shrink Down
- How to make that the snackbar action button be sho
- Listening to outgoing sms not working android
- How to create Circular view on android wear?
As far as I know, there is a partial support in Android SDK. The current situation is the following:
HttpsURLConnection
API supports SNI.There is an opened ticket regarding this issue in the Android bug tracker.
It is also possible to test the SNI support by making a connection to this URL: https://sni.velox.ch/
Fortunately, HttpsURLConnection supports
SNI
sinceAndroid 2.3
. One workaround if you need to supportAndroid 2.2 (and older)
is to set up an alternative virtual host on a unique port so that it's unambiguous which server certificate to return.Please check this link for more information. Hope this will help future users.