Extend validity of TLS-ALPN-01 certificates to 365 days (#1534)

This commit is contained in:
Stuart Auld 2021-11-27 15:22:59 +11:00 committed by GitHub
parent 9114733772
commit 719341250f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -261,7 +261,7 @@ func generateDerCert(privateKey *rsa.PrivateKey, expiration time.Time, domain st
}
if expiration.IsZero() {
expiration = time.Now().Add(365)
expiration = time.Now().AddDate(1, 0, 0)
}
template := x509.Certificate{