move the certPool loader function into pkg/certs (#10239)

This commit is contained in:
Harshavardhana
2020-08-11 08:29:50 -07:00
committed by GitHub
parent f8f290e848
commit 0dd3a08169
6 changed files with 137 additions and 92 deletions

View File

@@ -119,7 +119,7 @@ func serverHandleCmdArgs(ctx *cli.Context) {
logger.FatalIf(err, "Unable to load the TLS configuration")
// Check and load Root CAs.
globalRootCAs, err = config.GetRootCAs(globalCertsCADir.Get())
globalRootCAs, err = certs.GetRootCAs(globalCertsCADir.Get())
logger.FatalIf(err, "Failed to read root CAs (%v)", err)
// Register root CAs for remote ENVs