Skip to content

Commit 545a00e

Browse files
committed
removed InsecureSkipVerify variable
1 parent fd5772d commit 545a00e

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

modules/cassandra/tls.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,9 @@ func createTLSCerts() (*tlsCerts, error) {
8282
certPool.AddCert(caCert.Cert)
8383

8484
tlsConfig := &tls.Config{
85-
RootCAs: certPool,
86-
ServerName: "localhost",
87-
MinVersion: tls.VersionTLS12,
88-
InsecureSkipVerify: true, // Skip hostname verification for container testing
85+
RootCAs: certPool,
86+
ServerName: "localhost",
87+
MinVersion: tls.VersionTLS12,
8988
}
9089

9190
return &tlsCerts{

0 commit comments

Comments
 (0)