fix: add public certs automatically as part of global CAs (#10256)

This commit is contained in:
Harshavardhana authored and GitHub committed 2020-08-13 09:46:50 -07:00
1 parent e7ba78beee
commit 038d91feaa
2 files changed
+10

No files matched your search

+5
View File
@@ -122,6 +122,11 @@ func serverHandleCmdArgs(ctx *cli.Context) {
globalRootCAs, err = certs.GetRootCAs(globalCertsCADir.Get())
logger.FatalIf(err, "Failed to read root CAs (%v)", err)
// Add the global public crts as part of global root CAs
for _, publicCrt := range globalPublicCerts {
globalRootCAs.AddCert(publicCrt)
}
// Register root CAs for remote ENVs
env.RegisterGlobalCAs(globalRootCAs)