Compare commits

...

1 Commits

Author SHA1 Message Date
Wilken Rivera
19692786af builder/azure/arm: Update domain for self-signed certs 2020-03-29 07:22:32 -04:00

View File

@ -463,8 +463,8 @@ func (c *Config) createCertificate() (string, error) {
err = fmt.Errorf("Failed to Generate Private Key: %s", err)
return "", err
}
host := fmt.Sprintf("%s.cloudapp.net", c.tmpComputeName)
normalizedLocation := strings.ToLower(strings.ReplaceAll(c.Location, " ", ""))
host := fmt.Sprintf("%s.%s.cloudapp.azure.com", c.tmpComputeName, normalizedLocation)
notBefore := time.Now()
notAfter := notBefore.Add(24 * time.Hour)