PROJET AUTOBLOG


Shaarli - Les discussions de Shaarli

Archivé

Site original : Shaarli - Les discussions de Shaarli du 23/07/2013

⇐ retour index

Add SNI support for SSL hostname verification · Issue #17 · owncloud/android

samedi 12 avril 2014 à 18:36
phyks, le 12/04/2014 à 18:36
Je n'arrivais pas à utiliser mon serveur Firefox Sync avec Android. J'ai trouvé le problème dans la doc du module Firefox Sync pour Owncloud : https://github.com/owncloud/mozilla_sync.

Il faut activer RC4-SHA (ça c'était bon pour moi) mais surtout, le client Android ne supporte pas le SNI (qui permet d'avoir un certificat SSL différent par virtual host, tous sur la même adresse IP).

En poussant un peu, j'ai trouvé le workaround le plus simple : https://github.com/owncloud/android/issues/17

Je cite @yokem55 :
"The workaround I used is to create a second VirtualHost for OwnCloud using the same http document root, etc, but listening on port 8443, and specifying https://myowncloud.foo:8443 in the server string in the android app. This way regular browser and other SNI capable clients can connect on https using the regular port 443, and the android app can connect on 8443 without SNI issues."


Il faut donc créer un deuxième vhost comme celui d'owncloud en SSL, en changeant le port (8443 ici, mais au choix) et ajouter la directive "Listen 8443" dans le fichier /etc/apache2/ports.conf. Et… problem solved !
(Permalink)