mirror of
https://github.com/minio/minio.git
synced 2025-11-21 10:16:03 -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
@@ -227,11 +227,15 @@ func serverMain(ctx *cli.Context) {
|
||||
// Create certs path.
|
||||
logger.FatalIf(createConfigDir(), "Unable to initialize configuration files")
|
||||
|
||||
// Check and load SSL certificates.
|
||||
// Check and load TLS certificates.
|
||||
var err error
|
||||
globalPublicCerts, globalRootCAs, globalTLSCerts, globalIsSSL, err = getSSLConfig()
|
||||
globalPublicCerts, globalTLSCerts, globalIsSSL, err = getTLSConfig()
|
||||
logger.FatalIf(err, "Unable to load the TLS configuration")
|
||||
|
||||
// Check and load Root CAs.
|
||||
globalRootCAs, err = getRootCAs(getCADir())
|
||||
logger.FatalIf(err, "Failed to read root CAs (%v)", err)
|
||||
|
||||
// Is distributed setup, error out if no certificates are found for HTTPS endpoints.
|
||||
if globalIsDistXL {
|
||||
if globalEndpoints.IsHTTPS() && !globalIsSSL {
|
||||
|
||||
Reference in New Issue
Block a user