I know there's support for Client Certificate Authentication (PEM) for HTTP method. It would be nice to have similar functionality for Seafile method since it also uses HTTP to communication between rclone <-> seafile.
We're using Seafile server behind Apache proxy that uses client https certificates and right now we're forced to do turn off client certificate validation on Apache proxy for some clients that use Rclone.
No, these flags have no effect when you attempt to access Seafile behind proxy that requires client SSL certificate (and key and optional CA). It took me several hours trying various options until I recognized that rclone does not send client certificate.
ok, you did not mention that or the flags you tried, what version of rclone, commands, debug log, and what those options were.
makes it hard to help and hard to understand, without having to pull it from you...
--no-check-certificate=true
that does not work?
what other tools have you tested, for example, curl?
and what was the exact command that worked?
We can clearly see that CURL fails with routines:ssl3_read_bytes:sslv3 alert handshake failure, errno 0, because no client certificate supplied to CURL.
why are you testing a development version, almost four years old??
please, can you test latest stable and post the full output.
and post the rest of the help and support template.
rclone version
rclone config redacted
i am not expert, maybe it does not matter
but can you test rclone copyurl with --ca-cert, same as you did with curl.
The version I'm using is the one provided with Debian-11 repository. I agree that it may be outdated, but latest version (v1.67.0) shows me same behaviour.
but can you test rclone copyurl with --ca-cert, same as you did with curl.
I did tests with latest rclone v1.67.0 and here's what I get:
With --ca-cert --client-cert --client-key: ERROR : Attempt 3/3 failed with 1 errors and: Get "https://my.cloud.com/": tls: failed to verify certificate: x509: certificate signed by unknown authority
With --ca-cert --client-cert --client-key AND --no-check-certificate=true:
ERROR : Attempt 3/3 failed with 1 errors and: Get "https://my.cloud.com/": local error: tls: no renegotiation
Both above results using latest version.
And my rclone config is pretty straight-forward:
[super_cloud]
type = seafile
url = https://my.cloud.com/
user = my-user
pass = 81txwPxxxkAusiyh34h
2fa = false
2024/06/26 20:21:31 DEBUG : rclone: Version "v1.67.0" starting with parameters ["/tmp/rclone/rclone-v1.67.0-linux-amd64/rclone" "copyurl" "--stdout" "-vv" "https://my.cloud.com/" "--client-cert" "/home/user/.config/ssl/client.crt" "--client-key" "/home/user/.config/ssl/client.key" "--ca-cert" "/home/user/.config/ssl/CA.crt" "--no-check-certificate=true"]
2024/06/26 20:21:31 ERROR : Attempt 1/3 failed with 1 errors and: Get "https://my.cloud.com/": local error: tls: no renegotiation
2024/06/26 20:21:31 ERROR : Attempt 2/3 failed with 1 errors and: Get "https://my.cloud.com/": local error: tls: no renegotiation
2024/06/26 20:21:31 ERROR : Attempt 3/3 failed with 1 errors and: Get "https://my.cloud.com/": local error: tls: no renegotiation
2024/06/26 20:21:31 INFO :
Transferred: 0 B / 0 B, -, 0 B/s, ETA -
Errors: 1 (retrying may help)
Elapsed time: 0.0s
2024/06/26 20:21:31 DEBUG : 4 go routines active
2024/06/26 20:21:31 Failed to copyurl: Get "https://my.cloud.com/": local error: tls: no renegotiation