Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
awit-certmaster
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
allworldit
awit-certmaster
Commits
12f297d1
Commit
12f297d1
authored
Mar 01, 2017
by
Nigel Kukard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use 25 days as the renewal timer
parent
9f5ce59c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
awit-certmaster
awit-certmaster
+4
-4
No files found.
awit-certmaster
View file @
12f297d1
...
...
@@ -47,7 +47,7 @@ package AWIT::CertMaster;
use
strict
;
use
warnings
;
our
$
VERSION
=
'1.0
7
'
;
our
$
VERSION
=
'1.0
8
'
;
BEGIN
{
...
...
@@ -556,8 +556,8 @@ sub _webserverCheckCertificates
my $remainingTime = $parsedCert->{'notafter'}->epoch() - $now->epoch();
my $daysToExpire = $remainingTime / 86400;
# Check remaining time
if ($daysToExpire <
1
5) {
$self->logger("WARNING","WEBSERVER: - Certificate for vhost '%s' expires in under
1
5 days, adding to regeneration list",$vhostName);
if ($daysToExpire <
2
5) {
$self->logger("WARNING","WEBSERVER: - Certificate for vhost '%s' expires in under
2
5 days, adding to regeneration list",$vhostName);
next;
}
...
...
@@ -579,7 +579,7 @@ sub _webserverCheckCertificates
# Output a notice if the cert will be re-applied for in the next 3 days
if ($daysToExpire < 30) {
$self->logger("NOTICE","WEBSERVER: - Certificate for vhost '%s' expires soon, it will be renewed in %s days",$vhostName,ceil($daysToExpire -
1
5));
$self->logger("NOTICE","WEBSERVER: - Certificate for vhost '%s' expires soon, it will be renewed in %s days",$vhostName,ceil($daysToExpire -
2
5));
}
SKIP:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment