photOS icon indicating copy to clipboard operation
photOS copied to clipboard

Webdav trust certificate

Open flomickl opened this issue 3 years ago • 6 comments

I think an option to trust the certificate from my own Nextcloud address would be create.

At the moment, I get the following message and don't know how to set the certificate to trusted. Mounting https://XXXXXXX failed: mount.davfs: the server certificate does not match the server name mount.davfs: the server certificate is not trusted.

flomickl avatar Oct 31 '21 14:10 flomickl

Does this helps https://github.com/avanc/photOS/wiki/Self-signed-certificate ? Or how was the certificate created?

avanc avatar Nov 01 '21 11:11 avanc

Thanks for the reply I copied the pem file to the location but now the error message has changed to: can't read server certificate /data/photoframe/conf/webdav_cert.pem

-rw------- 1 root root 1.7K Nov 6 11:53 webdav_cert.pem

Any suggestion why?

flomickl avatar Nov 06 '21 12:11 flomickl

Hm, no idea. I rechecked the path and it looks valid: https://github.com/avanc/photOS/blob/master/package/photoframe/etc_photoframe/davfs2_owncert.conf

avanc avatar Nov 08 '21 21:11 avanc

You might try manually mounting webdav to see error messages:

mount.davfs -o ro,conf=/etc/photoframe/davfs2_owncert.conf "YOURWEBDAVURL" /data/photoframe/images_webdav

avanc avatar Dec 01 '21 15:12 avanc

you have to chmod the cert file -rw-r--r-- 1 root root 1.7K Nov 6 11:53 webdav_cert.pem

then it works.

cs301cs301 avatar Jan 12 '22 18:01 cs301cs301

This problem should be gone with rclone (https://github.com/avanc/photOS/issues/80)

avanc avatar Jan 15 '22 21:01 avanc