From df9d604168a73f78248d3dfc79f52188be1ffab6 Mon Sep 17 00:00:00 2001 From: Brian McCullough Date: Sun, 6 Oct 2024 20:15:11 -0400 Subject: [PATCH 1/2] Revised commit of 3.php to limit it to the bare minimum. The selection of Root Certicate type has been removed and only the Type 3 will be generated. --- pages/account/3.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pages/account/3.php b/pages/account/3.php index 2e04171..fcff5da 100644 --- a/pages/account/3.php +++ b/pages/account/3.php @@ -1,6 +1,6 @@ -
-
- \n", wordwrap(_("Please note: If you use a certificate signed by the class 3 root, the class 3 root certificate needs to be imported into your email program as well as the class 1 root certificate so your email program can build a full trust path chain."), 125 ) ) ?> + +
+ \n", wordwrap(_("Please note: both the class 1 and class 3 root certificates need to be imported into your email program so that your email program can build a full trust path chain."), 125 ) ) ?> -- 2.30.2 From 9300b1742ee6ab6e487c481f974ce3f4e04cc265 Mon Sep 17 00:00:00 2001 From: Brian McCullough Date: Wed, 16 Oct 2024 07:11:25 -0400 Subject: [PATCH 2/2] Updated to match upstream changes --- CommModule/client.pl | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/CommModule/client.pl b/CommModule/client.pl index 56c0a51..0874477 100755 --- a/CommModule/client.pl +++ b/CommModule/client.pl @@ -40,9 +40,6 @@ my $paranoid=1; my $debug=0; -# number of attempts before giving up -my $warn_threshold = 3; - #my $serialport="/dev/ttyS0"; my $serialport="/dev/ttyUSB0"; @@ -737,9 +734,7 @@ sub HandleCerts($$) SysLog "HandleCerts $table\n"; - my $sth = $dbh->prepare(sprintf( - "select * from %s where crt_name='' and csr_name!='' and warning<%d", $table, $warn_threshold - )); + my $sth = $dbh->prepare("select * from $table where crt_name='' and csr_name!='' and warning<3"); $sth->execute(); #$rowdata; while ( my $rowdata = $sth->fetchrow_hashref() ) @@ -909,7 +904,7 @@ sub HandleCerts($$) else { SysLog("Could not find the issued certificate. $crtname ".$row{"id"}."\n"); - $dbh->do(sprintf("update %s set warning=warning+1 where id=%d", $table, $row{'id'})); + $dbh->do("update `$table` set warning=warning+1 where `id`='".$row{'id'}."'"); } } } @@ -1083,9 +1078,7 @@ sub sendRevokeMail() sub HandleGPG() { - my $sth = $dbh->prepare(sprintf( - "select * from gpg where crt='' and csr!='' and warning<%d", $warn_threshold - )); + my $sth = $dbh->prepare("select * from gpg where crt='' and csr!='' "); $sth->execute(); my $rowdata; while ( $rowdata = $sth->fetchrow_hashref() ) @@ -1151,7 +1144,7 @@ sub HandleGPG() sendmail($user{email}, "[CAcert.org] Your GPG/PGP Key", $body, "support\@cacert.org", "", "", "CAcert Support"); } else { SysLog("Could not find the issued gpg key. ".$row{"id"}."\n"); - $dbh->do(sprintf("update gpg set warning=warning+1 where id=%d", $row{'id'})); + #$dbh->do("delete from `gpg` where `id`='".$row{'id'}."'"); } } } -- 2.30.2