mirror of
https://github.com/outbackdingo/estserver.git
synced 2026-01-28 18:18:54 +00:00
main: Fix loading of client CAs
This happened to work because I usually test it with the "local-ca" used by the est server *and* my factory registration reference server. However, when you need to trust many client ca's, this was totally broken. Signed-off-by: Andy Doan <andy@foundries.io>
This commit is contained in:
@@ -72,7 +72,9 @@ func main() {
|
||||
pemBytes, err := os.ReadFile(*clientCas)
|
||||
if err != nil {
|
||||
log.Fatal().Err(err).Msg("Unable to load client CAs")
|
||||
caPool.AppendCertsFromPEM(pemBytes)
|
||||
}
|
||||
if ok := caPool.AppendCertsFromPEM(pemBytes); !ok {
|
||||
log.Fatal().Msg("Unable to load client CAs")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user