mirror of
https://github.com/hashicorp/packer.git
synced 2026-09-27 02:04:01 -04:00
builder/azure/arm: Update domain for self-signed certs
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user