Default certificate expiry

This commit is contained in:
Manuel Zapf 2018-04-11 10:36:03 +02:00 committed by Traefiker Bot
parent ccd919aba3
commit 2641832304

View file

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