Compare commits
1 Commits
master
...
b-azure_ar
Author | SHA1 | Date | |
---|---|---|---|
|
19692786af |
@ -463,8 +463,8 @@ func (c *Config) createCertificate() (string, error) {
|
|||||||
err = fmt.Errorf("Failed to Generate Private Key: %s", err)
|
err = fmt.Errorf("Failed to Generate Private Key: %s", err)
|
||||||
return "", err
|
return "", err
|
||||||
}
|
}
|
||||||
|
normalizedLocation := strings.ToLower(strings.ReplaceAll(c.Location, " ", ""))
|
||||||
host := fmt.Sprintf("%s.cloudapp.net", c.tmpComputeName)
|
host := fmt.Sprintf("%s.%s.cloudapp.azure.com", c.tmpComputeName, normalizedLocation)
|
||||||
notBefore := time.Now()
|
notBefore := time.Now()
|
||||||
notAfter := notBefore.Add(24 * time.Hour)
|
notAfter := notBefore.Add(24 * time.Hour)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user