Skip to content

Commit

Permalink
fix(tls): setup minVersion to TLS1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
AlanLonguet committed Nov 15, 2022
1 parent 0c9b6e0 commit dbe1e86
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ func (c *client) Connect() error {
}
tlsConfig = &tls.Config{
RootCAs: rootCA,
MinVersion: tls.VersionTLS13,
MinVersion: tls.VersionTLS12,
}
}
// Use local cert if specified
Expand All @@ -177,7 +177,7 @@ func (c *client) Connect() error {
} else {
tlsConfig = &tls.Config{
Certificates: []tls.Certificate{cert},
MinVersion: tls.VersionTLS13,
MinVersion: tls.VersionTLS12,
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/pmalhaire/xk6-mqtt
module github.com/Alan-pad/xk6-mqtt

go 1.18

Expand Down

0 comments on commit dbe1e86

Please # to comment.