Skip to content

Commit

Permalink
use GetClientCertificate instead of Certificates to prevent clien…
Browse files Browse the repository at this point in the history
…t issue from not being sent (#498)
  • Loading branch information
ramondeklein authored Dec 30, 2024
1 parent 2e4e7be commit 4945c09
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/kes/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,9 @@ func newClient(conf config) *kes.Client {
}

client := kes.NewClientWithConfig("", &tls.Config{
Certificates: []tls.Certificate{cert},
GetClientCertificate: func(*tls.CertificateRequestInfo) (*tls.Certificate, error) {
return &cert, nil
},
InsecureSkipVerify: conf.InsecureSkipVerify,
})
client.Endpoints = endpoints
Expand Down

0 comments on commit 4945c09

Please sign in to comment.