Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for SNI (Server Name Indication) in SSL connections #7

Open
cpfeiffer opened this issue Oct 21, 2014 · 6 comments
Open

Support for SNI (Server Name Indication) in SSL connections #7

cpfeiffer opened this issue Oct 21, 2014 · 6 comments

Comments

@cpfeiffer
Copy link

It would be nice if one could use ReGalAndroid on servers with different SSL certificates for virtual hosts.

Currently one gets a certificate verification error when connecting to such a host.

See
https://en.wikipedia.org/wiki/Server_Name_Indication
https://developer.android.com/training/articles/security-ssl.html
http://blog.dev001.net/post/67082904181/android-using-sni-and-tlsv1-2-with-apache-httpclient

@gene1wood
Copy link

The error that ReGalAndroid gives due to the lack of SNI support when connecting to a Gallery deployment over https using SNI looks like this

Problem

You could not get connected to the configured gallery : https://foo.example.com/

A problem occurred during the gallery connection, the detail is :
net.dahanne.gallery3.client.business.exceptions.G3GalleryException: 
hostname in certificate didn't match:

<foo.exapmle.com> != <bar.example.com> OR <bar.example.com> OR <example.com>

@gene1wood
Copy link

This is also reported as Issue 98 in the Google Code repo

@gene1wood
Copy link

@cpfeiffer
Copy link
Author

cpfeiffer commented Feb 23, 2015

See also how the same issue is fixed in DAVDroid:
https://github.com/bitfireAT/davdroid/commit/9e082d930b483ad6008f4ee973f8b5383d489c17

@anthonydahanne
Copy link
Owner

I also hit this bug no later than yesterday.
it needs to be fixed, I'll have a look - thanks for the report

@hubbeldihub
Copy link

Seems to be still a problem. Tried ReGalAndroid for a Piwigo-Gallery with SSL. The App refuses the connection with the information that the certificate didn't match.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants