aboutsummaryrefslogtreecommitdiffstats
path: root/dmvpn-ca
diff options
context:
space:
mode:
Diffstat (limited to 'dmvpn-ca')
-rwxr-xr-xdmvpn-ca3
1 files changed, 2 insertions, 1 deletions
diff --git a/dmvpn-ca b/dmvpn-ca
index a507941..7e1b122 100755
--- a/dmvpn-ca
+++ b/dmvpn-ca
@@ -731,7 +731,8 @@ end
function get_crl()
local row = select_one('expires, data', 'crl', nil, 'n')
- return row and row[1] > now and x509crl.new(row[2]) or generate_crl()
+ return row and now < row[1] - config.crl.renewal and x509crl.new(row[2])
+ or generate_crl()
end