forked from TrueCloudLab/lego
Extend validity of TLS-ALPN-01 certificates to 365 days (#1534)
This commit is contained in:
parent
9114733772
commit
719341250f
1 changed files with 1 additions and 1 deletions
|
@ -261,7 +261,7 @@ func generateDerCert(privateKey *rsa.PrivateKey, expiration time.Time, domain st
|
||||||
}
|
}
|
||||||
|
|
||||||
if expiration.IsZero() {
|
if expiration.IsZero() {
|
||||||
expiration = time.Now().Add(365)
|
expiration = time.Now().AddDate(1, 0, 0)
|
||||||
}
|
}
|
||||||
|
|
||||||
template := x509.Certificate{
|
template := x509.Certificate{
|
||||||
|
|
Loading…
Reference in a new issue