Cannot validate certificate for Owncloud

Hello,

I have configured my Owncloud account in the rclone config, the problem is that the Owcloud server has selfsigned certificate. I get this error message:

~# rclone ls MyOwncloud:
2020/07/22 15:44:40 ERROR : : error listing: couldn't list files: Propfind https://X.X.X.X:8080/owncloud/: x509: cannot validate certificate for X.X.X.X because it doesn't contain any IP SANs
2020/07/22 15:44:40 Failed to ls with 2 errors: last error was: couldn't list files: Propfind https://X.X.X.X:8080/owncloud/: x509: cannot validate certificate for X.X.X.X because it doesn't contain any IP SANs

I use my rclone client in a Debian machine, is it possible to add this certificate in my system? I can not change the Owncloud certificate in the server side.

Thanks for your great help.

Kind regards.

hi,
i found this, with discuses the go lang tls package and a workaround using a flag.

might not be too hard to implement in rclone.

You should be able to use this

  --no-check-certificate   Do not verify the server SSL certificate. Insecure.

Thanks for the reply.

But where could I add this option? --no-check-certificate

This is my configuration:

# cat .config/rclone/rclone.conf
[MyOwncloud]
type = webdav
url = https://X.X.X.X:8080/owncloud/
vendor = owncloud
user = user
pass = pass_salted

Thanks for your great help.

Regards.

https://rclone.org/docs/#no-check-certificate-true-false

there are three ways to this

  1. add the flag to your command
rclone ls MyOwncloud: --no-check-certificate

add this line to the config file
no-check-certificate = true

  1. set the value via an environment variable
    https://rclone.org/docs/#environment-variables
    export RCLONE_NO_CHECK_CERTIFICATE = true
    rclone ls MyOwncloud:

Thanks!

I try the command with the parameter, and have this error:

# rclone ls MyOwncloud: --no-check-certificate
2020/07/23 16:13:05 ERROR : : error listing: couldn't list files: 405 Method Not Allowed
2020/07/23 16:13:05 Failed to ls with 2 errors: last error was: couldn't list files: 405 Method Not Allowed

I am missing something?

Thanks for your help.

try this

rclone lsd MyOwncloud: --no-check-certificate=true -vv --dump responses

and you can search the forum.
https://forum.rclone.org/search?q=owncloud%20405

You've probably got the url parameter wrong... It looks like this on my owncloud test

You can find what the parameter should be in the owncloud settings I think.

[TestWebdav]
type = webdav
url = https://example.com/remote.php/webdav/
user = XXX
pass = XXX

Thanks!

I add this to the URL and works: remote.php/webdav/

Regards.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.