builder/azure/arm: Update domain for self-signed certs

b-azure_arm-cert-timeout
Wilken Rivera 6 years ago
parent e3309f3e91
commit 19692786af

@ -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)

Loading…
Cancel
Save