Skip to content

Commit 089551f

Browse files
Enrique LacalEnriqueL8
Enrique Lacal
authored andcommitted
fix: remove unused certificates
Signed-off-by: Enrique Lacal <[email protected]>
1 parent d1d2d6d commit 089551f

File tree

8 files changed

+0
-167
lines changed

8 files changed

+0
-167
lines changed

pkg/ffresty/ffresty_test.go

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -256,25 +256,6 @@ func TestBadKeyPair(t *testing.T) {
256256
assert.Regexp(t, "FF00206", err)
257257
}
258258

259-
func TestTLSConfig(t *testing.T) {
260-
resetConf()
261-
tlsSection := utConf.SubSection("tls")
262-
utConf.Set(HTTPConfigURL, "https://localhost:12345")
263-
tlsSection.Set(fftls.HTTPConfTLSEnabled, true)
264-
tlsSection.Set(fftls.HTTPConfTLSCAFile, "../../test/certs/ca-crt.pem")
265-
tlsSection.Set(fftls.HTTPConfTLSCertFile, "../../test/certs/client-crt.pem")
266-
tlsSection.Set(fftls.HTTPConfTLSKeyFile, "../../test/certs/client-key.pem")
267-
268-
c, err := New(context.Background(), utConf)
269-
assert.Nil(t, err)
270-
271-
if transport, ok := c.GetClient().Transport.(*http.Transport); ok {
272-
assert.NotNil(t, transport.TLSClientConfig)
273-
assert.Equal(t, 1, len(transport.TLSClientConfig.Certificates))
274-
assert.NotNil(t, transport.TLSClientConfig.RootCAs)
275-
}
276-
}
277-
278259
func TestMTLSClientWithServer(t *testing.T) {
279260
// Create an X509 certificate pair
280261
privatekey, _ := rsa.GenerateKey(rand.Reader, 2048)

test/certs/ca-crt.pem

Lines changed: 0 additions & 17 deletions
This file was deleted.

test/certs/ca-invalid.pem

Lines changed: 0 additions & 1 deletion
This file was deleted.

test/certs/ca-key.pem

Lines changed: 0 additions & 30 deletions
This file was deleted.

test/certs/client-crt.pem

Lines changed: 0 additions & 22 deletions
This file was deleted.

test/certs/client-csr.pem

Lines changed: 0 additions & 26 deletions
This file was deleted.

test/certs/client-invalid.pem

Lines changed: 0 additions & 1 deletion
This file was deleted.

test/certs/client-key.pem

Lines changed: 0 additions & 51 deletions
This file was deleted.

0 commit comments

Comments
 (0)