Page 1 of 1

Backups using WebDAV

Posted: Tue 23. Nov 2021, 18:06
by gusarg81
Hi,

I am trying to setup a Backup repository using WebDav (in this case, with installed Nextcloud in remote server), but gives me this error:

Failed to connect to repository storage.
ERROR : Attempt 1/1 failed with 1 errors and: Update mkParentDir failed: Mkcol "https://home.ddns.gdnet.ar/nextcloud/re ... t_Backups/": x509: certificate signed by unknown authority
Failed to touch: Update mkParentDir failed: Mkcol "https://home.ddns.gdnet.ar/nextcloud/re ... t_Backups/": x509: certificate signed by unknown authority
Just in case, that domain uses LetsEncrypt cert.

Any ideas? Thanks.

Re: Backups using WebDAV  [SOLVED]

Posted: Wed 24. Nov 2021, 14:24
by Alexander
Hello,

your server probably not have the latest version of CA certificates installed.
You may want to try to update your local CA certificates with the following command.

Code: Select all

update-ca-certificates

Furthermore, your certificate chain on your server seems to be incomplete:
https://www.ssllabs.com/ssltest/analyze ... Results=on

Re: Backups using WebDAV

Posted: Wed 24. Nov 2021, 15:43
by gusarg81
Hi!

Thanks for the tip. For future references, I've fixed this by adding this line to the apache virtualhost corresponding to home.ddns.gdnet.ar:
SSLCertificateChainFile /etc/letsencrypt/live/home.ddns.gdnet.ar/chain.pem
So, full SSL line I've used now is:
SSLEngine On
SSLCertificateFile /etc/letsencrypt/live/home.ddns.gdnet.ar/cert.pem
SSLCertificateKeyFile /etc/letsencrypt/live/home.ddns.gdnet.ar/privkey.pem
SSLCertificateChainFile /etc/letsencrypt/live/home.ddns.gdnet.ar/chain.pem
Now adding WebDAV backup repository works.

Thanks again!