mirror of
https://github.com/minio/minio.git
synced 2025-04-06 21:00:40 -04:00
fix: add public certs automatically as part of global CAs (#10256)
This commit is contained in:
parent
e7ba78beee
commit
038d91feaa
@ -180,6 +180,11 @@ func StartGateway(ctx *cli.Context, gw Gateway) {
|
|||||||
globalRootCAs, err = certs.GetRootCAs(globalCertsCADir.Get())
|
globalRootCAs, err = certs.GetRootCAs(globalCertsCADir.Get())
|
||||||
logger.FatalIf(err, "Failed to read root CAs (%v)", err)
|
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
|
// Register root CAs for remote ENVs
|
||||||
env.RegisterGlobalCAs(globalRootCAs)
|
env.RegisterGlobalCAs(globalRootCAs)
|
||||||
|
|
||||||
|
@ -122,6 +122,11 @@ func serverHandleCmdArgs(ctx *cli.Context) {
|
|||||||
globalRootCAs, err = certs.GetRootCAs(globalCertsCADir.Get())
|
globalRootCAs, err = certs.GetRootCAs(globalCertsCADir.Get())
|
||||||
logger.FatalIf(err, "Failed to read root CAs (%v)", err)
|
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
|
// Register root CAs for remote ENVs
|
||||||
env.RegisterGlobalCAs(globalRootCAs)
|
env.RegisterGlobalCAs(globalRootCAs)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user