1
0
mirror of https://github.com/rancher/os.git synced 2025-09-01 06:40:31 +00:00

Fix server TLS key and cert auto-generation.

To use TLS with docker, just `ros set rancher.docker.tls true` and `system-docker restart docker` (no need to restart if rancher.docker.tls is set in cloud-config on boot).
This commit is contained in:
Ivan Mikushin
2015-12-10 11:36:37 +05:00
parent 23c8f5eaec
commit 6b7ddfaff2
2 changed files with 2 additions and 2 deletions

View File

@@ -219,7 +219,7 @@ func main(cfg *config.CloudConfig) error {
if dockerCfg.TLS {
log.Debug("Generating TLS certs if needed")
if err := control.Generate(true, "/etc/docker/tls", []string{"localhost"}); err != nil {
if err := control.Generate(true, "/etc/docker/tls", []string{"127.0.0.1", "*", "*.*", "*.*.*", "*.*.*.*"}); err != nil {
return err
}
}