mirror of
https://github.com/minio/minio.git
synced 2025-01-26 06:03:17 -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(),
|
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)
|
swaggerSpec, err := loads.Embedded(restapi.SwaggerJSON, restapi.FlatSwaggerJSON)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
@ -283,8 +286,6 @@ func initConsoleServer() (*restapi.Server, error) {
|
|||||||
// register all APIs
|
// register all APIs
|
||||||
server.ConfigureAPI()
|
server.ConfigureAPI()
|
||||||
|
|
||||||
restapi.GlobalRootCAs, restapi.GlobalPublicCerts, restapi.GlobalTLSCertsManager = globalRootCAs, globalPublicCerts, globalTLSCerts
|
|
||||||
|
|
||||||
consolePort, _ := strconv.Atoi(globalMinioConsolePort)
|
consolePort, _ := strconv.Atoi(globalMinioConsolePort)
|
||||||
|
|
||||||
server.Host = globalMinioConsoleHost
|
server.Host = globalMinioConsoleHost
|
||||||
|
Loading…
x
Reference in New Issue
Block a user