LINBIT / csync2

file synchronization tool using librsync and current state databases
GNU General Public License v2.0
145 stars 39 forks source link

Build csync2 for SSL #24

Closed sburnwal closed 4 years ago

sburnwal commented 4 years ago

I am not experienced with csync (other than building it off the shelf i.e. what is there in git repo here) but I want to know how do I build it with SSL libraries. Is there is any example how to build for SSL enabled csync2. Right now I get this error after enabling SSL.

csync2 -D /var/lib/csync2 -N host1 -xv
Connecting to host host22 (SSL) ...
Bound to 10.0.0.1:0 as host1.
Connect to 10.0.0.2:30865 (host2).
ERROR: Config request SSL but this csync2 is built without SSL support.
ERROR: Connection to remote host `host2' failed.
sburnwal commented 4 years ago

I figured out. Issue was someone had hardcoded --disable-gnutls option in the configure script. After removing this, SSL compliance of csync worked fine.