Skip to content

Commit

Permalink
lower renewal time
Browse files Browse the repository at this point in the history
  • Loading branch information
OlofBlomqvist committed Sep 16, 2024
1 parent 267a9cf commit 357de04
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/certs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ impl DynamicCertResolver {
match ccc.1.tbs_certificate.validity.time_to_expiration() {
Some(v) => {
let days = v.whole_days();
if days < 89 {
if days < 30 {
tracing::warn!("Purging the self-signed cert for {domain} due to less than 30 days remaining: {days} days.");
self.lets_encrypt_signed_certs.remove(domain);
None
Expand Down Expand Up @@ -88,7 +88,7 @@ impl DynamicCertResolver {
match ccc.1.tbs_certificate.validity.time_to_expiration() {
Some(v) => {
let days = v.whole_days();
if days < 89 {
if days < 30 {
tracing::warn!("Generating a new LE cert for {domain} due to less than 30 days remaining: {days} days.");
self.lets_encrypt_signed_certs.remove(domain);
None
Expand Down

0 comments on commit 357de04

Please sign in to comment.