Skip to content

Commit

Permalink
use TLSv1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
danielb42 committed Jul 27, 2020
1 parent 749a45f commit 4006064
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 5 additions & 3 deletions pkg/rri/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,14 @@ type Client struct {

// NewClient returns a new Client object for the given RRI Server.
func NewClient(address string) (*Client, error) {

isMockEnv := (address == "localhost:31298")

client := &Client{
address: address,
tlsConfig: &tls.Config{
MinVersion: tls.VersionSSL30,
CipherSuites: []uint16{tls.TLS_RSA_WITH_AES_128_CBC_SHA},
InsecureSkipVerify: true,
MinVersion: tls.VersionTLS13,
InsecureSkipVerify: isMockEnv,
},
XMLMode: false,
AutoNormalizeHandles: true,
Expand Down
3 changes: 1 addition & 2 deletions pkg/rri/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ func TestServer(t *testing.T) {

client := &Client{address: fmt.Sprintf("localhost:%d", port)}
client.tlsConfig = &tls.Config{
MinVersion: tls.VersionSSL30,
CipherSuites: []uint16{tls.TLS_RSA_WITH_AES_128_CBC_SHA},
MinVersion: tls.VersionTLS13,
InsecureSkipVerify: true,
}

Expand Down

0 comments on commit 4006064

Please sign in to comment.