From b5c3092e1f07bb973d6394cc9131f0d415d3d9ec Mon Sep 17 00:00:00 2001 From: Gosa Date: Fri, 23 Aug 2024 14:22:17 -0600 Subject: [PATCH] Fixing tls issues --- api/restclient.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/restclient.go b/api/restclient.go index 09275c9..3e79f40 100644 --- a/api/restclient.go +++ b/api/restclient.go @@ -143,7 +143,7 @@ func New(_ context.Context, host string, opts ClientOptions, debug bool) (Client c.http.Timeout = opts.Timeout } - if opts.Insecure { + if opts.Insecure { // #nosec G402 c.http.Transport = &http.Transport{ TLSClientConfig: &tls.Config{ InsecureSkipVerify: true, @@ -160,6 +160,7 @@ func New(_ context.Context, host string, opts ClientOptions, debug bool) (Client RootCAs: pool, InsecureSkipVerify: false, CipherSuites: util.GetSecuredCipherSuites(), + MinVersion: tls.VersionTLS12, }, } }