Commit 5a76cdee authored by Gary Wong's avatar Gary Wong

Make sure the CRL is regenerated early enough (before expiration).

parent 20a45f87
......@@ -127,7 +127,7 @@ if (-e $CRLPEM) {
my $diff = $expires - $crlcreated;
if (time() >= $expires ||
$diff <= 0 ||
$diff < ($CRLDAYS * 3600 * 24) / 2) {
time() >= $crlcreated + $diff / 2) {
$force = 1;
}
......
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