Backups using WebDAV  [SOLVED]

Locked
User avatar
gusarg81
Posts: 33
Joined: Sun 18. Jul 2021, 02:20
Location: Argentina
Contact:

Backups using WebDAV

Post 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.
User avatar
Alexander
Keyweb AG
Posts: 3810
Joined: Wed 20. Jan 2016, 02:23

Re: Backups using WebDAV  [SOLVED]

Post 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
Mit freundlichen Grüßen / Best regards
Alexander Mahr

**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
User avatar
gusarg81
Posts: 33
Joined: Sun 18. Jul 2021, 02:20
Location: Argentina
Contact:

Re: Backups using WebDAV

Post 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!
Locked