mirror of
https://github.com/minio/minio.git
synced 2025-11-20 01:50:24 -05:00
Root CAs can be used for backend without TLS (#6711)
This commit is contained in:
committed by
Nitish Tiwari
parent
c6ec3fdfba
commit
81d21850ec
@@ -157,10 +157,14 @@ func StartGateway(ctx *cli.Context, gw Gateway) {
|
||||
// Create certs path.
|
||||
logger.FatalIf(createConfigDir(), "Unable to create configuration directories")
|
||||
|
||||
// Check and load SSL certificates.
|
||||
// Check and load TLS certificates.
|
||||
var err error
|
||||
globalPublicCerts, globalRootCAs, globalTLSCerts, globalIsSSL, err = getSSLConfig()
|
||||
logger.FatalIf(err, "Invalid SSL certificate file")
|
||||
globalPublicCerts, globalTLSCerts, globalIsSSL, err = getTLSConfig()
|
||||
logger.FatalIf(err, "Invalid TLS certificate file")
|
||||
|
||||
// Check and load Root CAs.
|
||||
globalRootCAs, err = getRootCAs(getCADir())
|
||||
logger.FatalIf(err, "Failed to read root CAs (%v)", err)
|
||||
|
||||
// Set system resources to maximum.
|
||||
logger.LogIf(context.Background(), setMaxResources())
|
||||
|
||||
Reference in New Issue
Block a user