From 719341250f8f644bc505ee9ea68bc3f731037f87 Mon Sep 17 00:00:00 2001 From: Stuart Auld Date: Sat, 27 Nov 2021 15:22:59 +1100 Subject: [PATCH] Extend validity of TLS-ALPN-01 certificates to 365 days (#1534) --- certcrypto/crypto.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/certcrypto/crypto.go b/certcrypto/crypto.go index 44f6e4d4..519c7a45 100644 --- a/certcrypto/crypto.go +++ b/certcrypto/crypto.go @@ -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{