[TIMOB-17948] Android: Support SSL SNI on Apache HTTP Client
GitHub Issue | n/a |
---|---|
Type | Improvement |
Priority | High |
Status | Closed |
Resolution | Done |
Resolution Date | 2015-05-29T03:21:55.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 4.1.0 |
Components | Android |
Labels | android, httpclient |
Reporter | Philippe Wueger |
Assignee | Ingo Muschenetz |
Created | 2014-10-31T10:04:38.000+0000 |
Updated | 2017-03-16T21:42:12.000+0000 |
Description
Google recommends using HttpURLConnection instead of the Apache HTTP client, see:
http://developer.android.com/reference/org/apache/http/impl/client/DefaultHttpClient.html
http://android-developers.blogspot.ch/2011/09/androids-http-clients.html
Switching to HttpsURLConnection would further support SSL SNI, see:
https://developer.android.com/training/articles/security-ssl.html
{quote}
Fortunately, HttpsURLConnection supports SNI since Android 2.3. Unfortunately, Apache HTTP Client does not, which is one of the many reasons we discourage its use.
{quote}
http://stackoverflow.com/questions/5879894/android-ssl-sni-support
Please consider switching to HttpURLConnection/HttpsURLConnection.
Thank you.
Any updates on this?
Is this issue going to be assigned to any of the nearest releases?
Looks like Apache supports SNI now too. [HttpComponents HttpClient 4.3.2 Released ](http://mail-archives.apache.org/mod_mbox/www-announce/201401.mbox/%3CCACZkXPx4Rs7YQmau6h8812K_A5XVdfwo18tkvWBG=EV-9vh2XQ@mail.gmail.com%3E)
Any idea when this will be fixed?
It will likely be addressed in upcoming sprint. However, it looks like it's not necessary to switch--just to upgrade to a newer Apache HTTP client. Anyone wish to try dropping in a newer version of the library?
https://hc.apache.org/httpcomponents-client-4.3.x/android-port.html This library would be the best to drop in. There would probably need to be changes in the code as well and it needs to be tested. Any comments on doing it this way?
Can confirm that this was done.