mirror of
https://github.com/minio/minio.git
synced 2024-12-24 06:05:55 -05:00
Set Console global Root CAs early to trust provided certs (#16890)
This commit is contained in:
parent
58c129f94a
commit
8b4d0255b7
@ -257,6 +257,9 @@ func initConsoleServer() (*restapi.Server, error) {
|
||||
Path: globalCertsCADir.Get(),
|
||||
}
|
||||
|
||||
// set certs before other console initialization
|
||||
restapi.GlobalRootCAs, restapi.GlobalPublicCerts, restapi.GlobalTLSCertsManager = globalRootCAs, globalPublicCerts, globalTLSCerts
|
||||
|
||||
swaggerSpec, err := loads.Embedded(restapi.SwaggerJSON, restapi.FlatSwaggerJSON)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
@ -283,8 +286,6 @@ func initConsoleServer() (*restapi.Server, error) {
|
||||
// register all APIs
|
||||
server.ConfigureAPI()
|
||||
|
||||
restapi.GlobalRootCAs, restapi.GlobalPublicCerts, restapi.GlobalTLSCertsManager = globalRootCAs, globalPublicCerts, globalTLSCerts
|
||||
|
||||
consolePort, _ := strconv.Atoi(globalMinioConsolePort)
|
||||
|
||||
server.Host = globalMinioConsoleHost
|
||||
|
Loading…
Reference in New Issue
Block a user