diff --git a/cmd/gateway-main.go b/cmd/gateway-main.go index 6874296eb..2eb34ed4e 100644 --- a/cmd/gateway-main.go +++ b/cmd/gateway-main.go @@ -180,6 +180,11 @@ func StartGateway(ctx *cli.Context, gw Gateway) { 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) diff --git a/cmd/server-main.go b/cmd/server-main.go index 12d4b487f..60078d382 100644 --- a/cmd/server-main.go +++ b/cmd/server-main.go @@ -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)