Skip to content

Commit

Permalink
fix: set client CAs for mTLS auth (#437)
Browse files Browse the repository at this point in the history
The new TLS config introduced in PR #414 does not set client CAs.
So when enabling mTLS authentication, client requests fail with
`certificate signed by unknown authority`.
This commit fixes this by using the root CAs also for
authenticating mTLS clients.

Ref: #414
  • Loading branch information
lu1as authored Feb 9, 2024
1 parent 06d53c9 commit a275f23
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kesconf/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ func (f *File) TLSConfig() (*tls.Config, error) {
Certificates: []tls.Certificate{certificate},
NextProtos: []string{"h2", "http/1.1"},
RootCAs: rootCAs,
ClientCAs: rootCAs,
}, nil
}

Expand Down

0 comments on commit a275f23

Please sign in to comment.