Commit 12f297d1 authored by Nigel Kukard's avatar Nigel Kukard

Use 25 days as the renewal timer

parent 9f5ce59c
...@@ -47,7 +47,7 @@ package AWIT::CertMaster; ...@@ -47,7 +47,7 @@ package AWIT::CertMaster;
use strict; use strict;
use warnings; use warnings;
our $VERSION = '1.07'; our $VERSION = '1.08';
BEGIN { BEGIN {
...@@ -556,8 +556,8 @@ sub _webserverCheckCertificates ...@@ -556,8 +556,8 @@ sub _webserverCheckCertificates
my $remainingTime = $parsedCert->{'notafter'}->epoch() - $now->epoch(); my $remainingTime = $parsedCert->{'notafter'}->epoch() - $now->epoch();
my $daysToExpire = $remainingTime / 86400; my $daysToExpire = $remainingTime / 86400;
# Check remaining time # Check remaining time
if ($daysToExpire < 15) { if ($daysToExpire < 25) {
$self->logger("WARNING","WEBSERVER: - Certificate for vhost '%s' expires in under 15 days, adding to regeneration list",$vhostName); $self->logger("WARNING","WEBSERVER: - Certificate for vhost '%s' expires in under 25 days, adding to regeneration list",$vhostName);
next; next;
} }
...@@ -579,7 +579,7 @@ sub _webserverCheckCertificates ...@@ -579,7 +579,7 @@ sub _webserverCheckCertificates
# Output a notice if the cert will be re-applied for in the next 3 days # Output a notice if the cert will be re-applied for in the next 3 days
if ($daysToExpire < 30) { if ($daysToExpire < 30) {
$self->logger("NOTICE","WEBSERVER: - Certificate for vhost '%s' expires soon, it will be renewed in %s days",$vhostName,ceil($daysToExpire - 15)); $self->logger("NOTICE","WEBSERVER: - Certificate for vhost '%s' expires soon, it will be renewed in %s days",$vhostName,ceil($daysToExpire - 25));
} }
SKIP: SKIP:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment