mirror of
https://github.com/rclone/rclone.git
synced 2025-12-16 00:04:40 +00:00
fs: tls: add --client-pass support for encrypted --client-key files
This also widens the supported types
- Unencrypted PKCS#1 ("BEGIN RSA PRIVATE KEY")
- Unencrypted PKCS#8 ("BEGIN PRIVATE KEY")
- Encrypted PKCS#8 ("BEGIN ENCRYPTED PRIVATE KEY")
- Legacy PEM encryption (e.g., DEK-Info headers), which are automatically detected.
This commit is contained in:
@@ -438,6 +438,12 @@ var ConfigOptionsInfo = Options{{
|
||||
Default: "",
|
||||
Help: "Client SSL private key (PEM) for mutual TLS auth",
|
||||
Groups: "Networking",
|
||||
}, {
|
||||
Name: "client_pass",
|
||||
Default: "",
|
||||
Help: "Password for client SSL private key (PEM) for mutual TLS auth (obscured)",
|
||||
Groups: "Networking",
|
||||
IsPassword: true,
|
||||
}, {
|
||||
Name: "multi_thread_cutoff",
|
||||
Default: SizeSuffix(256 * 1024 * 1024),
|
||||
@@ -644,6 +650,7 @@ type ConfigInfo struct {
|
||||
CaCert []string `config:"ca_cert"` // Client Side CA
|
||||
ClientCert string `config:"client_cert"` // Client Side Cert
|
||||
ClientKey string `config:"client_key"` // Client Side Key
|
||||
ClientPass string `config:"client_pass"` // Client Side Key Password (obscured)
|
||||
MultiThreadCutoff SizeSuffix `config:"multi_thread_cutoff"`
|
||||
MultiThreadStreams int `config:"multi_thread_streams"`
|
||||
MultiThreadSet bool `config:"multi_thread_set"` // whether MultiThreadStreams was set (set in fs/config/configflags)
|
||||
|
||||
Reference in New Issue
Block a user