Skip to content

Commit

Permalink
Allow tls renegotiation once
Browse files Browse the repository at this point in the history
  • Loading branch information
f-blass committed Mar 25, 2024
1 parent 67a5c56 commit 9945f6b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions httpclient/httpclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,10 @@ func DefaultTLSConfig(identity env.Identity) (*tls.Config, error) {
return nil, errors.New("error adding certs to pool for DefaultTLSConfig")
}
tlsConfig := &tls.Config{
MinVersion: tls.VersionTLS12,
RootCAs: tlsCertPool,
Certificates: []tls.Certificate{tlsCert},
MinVersion: tls.VersionTLS12,
RootCAs: tlsCertPool,
Certificates: []tls.Certificate{tlsCert},
Renegotiation: tls.RenegotiateOnceAsClient,
}
return tlsConfig, nil
}
Expand Down

0 comments on commit 9945f6b

Please sign in to comment.