mirror of
https://github.com/restic/restic.git
synced 2025-08-12 16:27:40 +00:00
Support for TLS client certificate authentication
This adds --tls-client-cert and --tls-client-key parameters and enables use of that certificate/key pair when connecting to https servers.
This commit is contained in:

committed by
Alexander Neumann

parent
e706f1a8d1
commit
e805b968b1
@@ -121,7 +121,7 @@ func createS3(t testing.TB, cfg MinioTestConfig, tr http.RoundTripper) (be resti
|
||||
}
|
||||
|
||||
func newMinioTestSuite(ctx context.Context, t testing.TB) *test.Suite {
|
||||
tr, err := backend.Transport(nil)
|
||||
tr, err := backend.Transport(nil, "", "")
|
||||
if err != nil {
|
||||
t.Fatalf("cannot create transport for tests: %v", err)
|
||||
}
|
||||
@@ -221,7 +221,7 @@ func BenchmarkBackendMinio(t *testing.B) {
|
||||
}
|
||||
|
||||
func newS3TestSuite(t testing.TB) *test.Suite {
|
||||
tr, err := backend.Transport(nil)
|
||||
tr, err := backend.Transport(nil, "", "")
|
||||
if err != nil {
|
||||
t.Fatalf("cannot create transport for tests: %v", err)
|
||||
}
|
||||
|
Reference in New Issue
Block a user