Default certificate expiry
This commit is contained in:
parent
ccd919aba3
commit
2641832304
1 changed files with 1 additions and 1 deletions
|
@ -71,7 +71,7 @@ func derCert(privKey *rsa.PrivateKey, expiration time.Time, domain string) ([]by
|
|||
}
|
||||
|
||||
if expiration.IsZero() {
|
||||
expiration = time.Now().Add(365)
|
||||
expiration = time.Now().Add(365 * (24 * time.Hour))
|
||||
}
|
||||
|
||||
template := x509.Certificate{
|
||||
|
|
Loading…
Reference in a new issue