Skip to content

Commit

Permalink
Enable tlsv1.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerrit91 committed Sep 5, 2023
1 parent cc80ef3 commit 22db82f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/bmc/nsq.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ func (b *BMCService) InitConsumer() error {
return err
}

tlsConfig := &tls.Config{
config := nsq.NewConfig()
config.TlsConfig = &tls.Config{
Certificates: []tls.Certificate{cert},
ClientCAs: caCertPool,
ClientAuth: tls.RequireAndVerifyClientCert,
MinVersion: tls.VersionTLS13,
}
config.TlsV1 = true

config := nsq.NewConfig()
config.TlsConfig = tlsConfig
consumer, err := nsq.NewConsumer(b.machineTopic, mqChannel, config)
if err != nil {
return err
Expand Down

0 comments on commit 22db82f

Please sign in to comment.