etesync / etesync-dav

This is a CalDAV and CardDAV adapter for EteSync
https://www.etesync.com
GNU General Public License v3.0
290 stars 47 forks source link

Self-signed SSL certificate doesn't work; happens only in EteSync DAV Management WebUI #208

Closed spma1037 closed 3 years ago

spma1037 commented 3 years ago

EteSync DAV version: 0.30.7 Radicale version: 3.0.3

When I try to add a user in the EteSync DAV Management WebUI at locahost:37358, it always returns: error sending request for url (https://LOCAL_IP/api/v1/authentication/login_challenge/): error trying to connect: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed:ssl/statem/statem_clnt.c:1915: (self signed certificate)

I also tried using the options listed at https://github.com/etesync/etesync-dav/blob/master/README.md#self-signed-certs.

Nothing works.

spma1037 commented 3 years ago

I want to add: I have no issue connecting to my server and logging in if I use the web client at https://pim.etesync.com/. The Android app from F-Droid also works if I manually accept the certificate.

spma1037 commented 3 years ago

I managed to fix the issue and it is not related to EteSync.

If anyone has the same issue: Please make sure to set up your SSL certificates correctly. In my case I needed to put my LOCAL_IP in the SubjectAltName field in my OpenSSL configuration file that was being used to create the SSL certificates, e. g. SubjectAltName = IP:LOCAL_IP.

tasn commented 3 years ago

Great to hear!