Skip to content

Commit

Permalink
Merge pull request #54 from dell/tls-update
Browse files Browse the repository at this point in the history
Fixing tls issues
  • Loading branch information
kumarkgosa authored Aug 28, 2024
2 parents 10cd868 + b5c3092 commit 348bace
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api/restclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
},
}
}
Expand Down

0 comments on commit 348bace

Please sign in to comment.