Skip to content

Commit

Permalink
Extend validity of TLS-ALPN-01 certificates to 365 days (#1534)
Browse files Browse the repository at this point in the history
  • Loading branch information
sjauld authored Nov 27, 2021
1 parent 9114733 commit 7193412
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion certcrypto/crypto.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down

0 comments on commit 7193412

Please sign in to comment.