From 2687e7ed7360d1c7e61064cea852daf4f91f6891 Mon Sep 17 00:00:00 2001 From: Jan Dittberner Date: Sun, 31 Jan 2021 12:30:02 +0100 Subject: [PATCH] Reduce the lifetime of certificates to 366 days. This commit fixes #1482 by setting the lifetime of certificates to 366 days. Updates to the user documentation and/or CPS might be required and there is no distinction between client and server certificates because the type of certificate is not known at that location of the code. Fixes #1482, Relates to #1494, #775 --- CommModule/client.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CommModule/client.pl b/CommModule/client.pl index 0874477..7a1afbe 100755 --- a/CommModule/client.pl +++ b/CommModule/client.pl @@ -444,7 +444,7 @@ sub calculateDays($) my @sum = $dbh->selectrow_array("select sum(`points`) as `total` from `notary` where `to`='".$_[0]."' and `deleted`=0 group by `to`"); SysLog("Summe: $sum[0]\n") if($debug); - return ($sum[0]>=50)?730:180; + return ($sum[0]>=50)?366:180; } return 180; } -- 2.29.2