Commit f74a0c43 authored by Leigh Stoller's avatar Leigh Stoller

Fix bug d that fix prevented CRL from being regenerated.

parent 405a7f43
#!/usr/bin/perl -w
#
# EMULAB-COPYRIGHT
# Copyright (c) 2008 University of Utah and the Flux Group.
# Copyright (c) 2008-2009 University of Utah and the Flux Group.
# All rights reserved.
#
use strict;
......@@ -125,7 +125,8 @@ if (-e $CRLPEM) {
}
my $diff = $expires - $crlcreated;
if ($diff <= 0 ||
if (time() >= $expires ||
$diff <= 0 ||
$diff < ($CRLDAYS * 3600 * 24) / 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