mirror of
https://github.com/containous/traefik.git
synced 2025-03-19 18:50:12 +03:00
Default certificate expiry
This commit is contained in:
parent
ccd919aba3
commit
2641832304
@ -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…
x
Reference in New Issue
Block a user