somkiattha / opendatakit

Automatically exported from code.google.com/p/opendatakit
0 stars 0 forks source link

Enabling SSL SNI for server interactions #1121

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
From Gregor MacLennan:

Cloudflare now provides free SSL with one-click, on free cloudflare accounts. 
This is an easy way to get SSL working for a custom ODK Aggregate installation, 
however, they use SSL SNI, which does not seem to be supported by ODK Collect 
at this time. It would be great if it could be supported. I found this which 
may help:

http://blog.dev001.net/post/67082904181/android-using-sni-and-tlsv1-2-with-apach
e

Note that if Aggregate is behind Cloudflare's network, posting submissions has 
a timeout of about 2-5 minutes in my testing (timeout occurs on Cloudflare's 
network) which may be an issue for those posting photos on very slow 
connections.

--------
ODK Collect uses a stock Apache HttpClient 4.2.1 library with package renaming.

Looks like this feature would require upgrading to HttpClient 4.3.2.

Original issue reported on code.google.com by mitchellsundt@gmail.com on 24 Mar 2015 at 2:28

GoogleCodeExporter commented 8 years ago
If anyone wants to do this, attached is the Linux bash script that was used to 
generate the httpclientandroidlib-4.2.1.jar

Original comment by mitchellsundt@gmail.com on 24 Mar 2015 at 2:38

Attachments: