I want to mount a directory on a file server at startup. This is my /etc/fstab entry:
# mount the fileserver https://fsrv.company/ /mnt/fileserver davfs user,auto 0 0
Manually mounting it with
mount /mnt/fileserver works fine. However, because of an outdated certificate this issues a prompt which I always have to answer with yes:
/sbin/mount.davfs: the server certificate does not match the server name /sbin/mount.davfs: the server certificate is not trusted [...] Accept certificate for this session? [y,N] y
This device should be mounted when starting Ubuntu (due to the
auto option). However, the device is not mounted, probably because of the required input. The owner of the fileserver wont update its certificate.
How can I automate this process, such that the device is mounted at startup with the answer being always
EDIT: I did download and place the certificate in .davfs2/certs/ and edited the entry in .davfs2/davfs2.conf (as hinted below by @Oli), but the interactive input remains.