One solution that worked, is using davfs.
sudo apt-get install davfs2
then copy the certificate from the CA (in pem format) to /ect/davfs2/certs and the client certificate (in .p12 format) to /ect/davfs/certs/private and modify the configuration file e.g.
sudo nano /etc/davfs2/davfs2.conf
by uncommenting (removing the #) the lines trust_ca_cert and clientcert and adding the full paths to the respective certificates e.g.
save the file and exit (Ctrl + O, Ctrl + x in nano) and make sure the clientcert has the correct permissions
chmod 0600 /etc/davfs2/certs/private/xxx.yyy.com.p12
Optionally configure credentials file
You can use a credential file located at:
This way you will not have to enter your password each time. The file has good examples of its syntax, which I will not replicate here.
To mount the filesystem run
sudo mount -t davfs -o uid=bruni,gid=users https://serveraddress /home/bruni/mountpoint
The problems with this solution are:
- The website offers links in the form
davs:// which do not work with the above scenario
(We solved this serverside by providing links in the form file://
Freefilesync returns the following error when I try to synchronize with a folder mounted as above:
Cannot set directory lock for "/path/to/mountpoint".
Cannot write file "/path/to/mountpoint/sync.ffs_lock".
Error Code 13:Permission denied (open)
update To mitigate this, I have switched to rsync.