Skip to content

Commit

Permalink
client: set minimum TLS version
Browse files Browse the repository at this point in the history
This should be fine? x)
  • Loading branch information
fsouza committed Aug 4, 2020
1 parent 7302a16 commit 8e782d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ func NewVersionedTLSClientFromBytes(endpoint string, certPEMBlock, keyPEMBlock,
return nil, err
}
}
tlsConfig := &tls.Config{}
tlsConfig := &tls.Config{MinVersion: tls.VersionTLS12}
if certPEMBlock != nil && keyPEMBlock != nil {
tlsCert, err := tls.X509KeyPair(certPEMBlock, keyPEMBlock)
if err != nil {
Expand Down

0 comments on commit 8e782d1

Please sign in to comment.