[sword-devel] SSL mystery @ crosswire.org
tuomas.airaksinen at gmail.com
Thu Sep 17 11:34:22 EDT 2020
Looks like it's not supported properly when using apache's httpclient5. But
when using HttpsUrlConnection, SNI is supported since android 2.3.
So it looks like I have found a solution (more GH issue). Thank you for
leading me to the right track.
On Thu, Sep 17, 2020 at 5:27 PM Chris Umphress <umphress at gmail.com> wrote:
> If you pull the SSL certificate for an IP address, the server typically
> sends you the default, configured certificate.
> I am curious about why Android 5 would request the certificate by IP
> address only. Does it not support the Server Name Indication?:
> Chris Umphress
> On Thu, 17 Sep 2020 16:19:25 +0300
> Tuomas Airaksinen <tuomas.airaksinen at gmail.com> wrote:
> > When I type
> > host crosswire.org it gives me ip 188.8.131.52.
> > When I fetch ssl cert for that ip (openssl s_client -connect
> > 184.108.40.206:443), it gives cert with CN www.ancc-gan.de.
> > This confuses And Bible on Android 5 (lollipop), as host name checking
> > fail to
> > javax.net.ssl.SSLPeerUnverifiedException: Certificate for <
> > doesn't match any of the subject alternative names: [www.ancc-gan.de]
> > In more recent Android versions it works properly.
> > Now for Android 5 I have made exception such that host name verification
> > bypassed, but that's not neat nor secure.
> > --
> > T: Tuomas
> sword-devel mailing list: sword-devel at crosswire.org
> Instructions to unsubscribe/change your settings at above page
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the sword-devel