etesync / etesync-dav

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

Linux - SSL #266

Open flewid opened 2 years ago

flewid commented 2 years ago

Hello,

Furthur to my previous ticket - I've got ETESYNC-DAV working fine through docker on my local NAS and clients on the LAN can connect to it with no issues.

However, now I am trying to sync Mac Calendar / Contacts and of course it won't work because SSL required.

Is there a way to add SSL on a linux install of etesync-dav?

I tried etesync-dav certgen per the docs, but it tells me it's only supported on Mac or Windows installs.

tasn commented 2 years ago

Oh, interesting. You can probably just create the required pem and key files and put them in the right place, and then restart the server. Take a look at what the certgen command does (lmk if you need help deciphering it).

flewid commented 2 years ago

ah okay i'll try that, what would the correct location be? i'm assuming just this command to generate the cert?

openssl req -new -newkey rsa:4096 -days 3650 -nodes -x509 -subj "/CN=localhost" -keyout etesync.key -out etesync.crt