summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard "Ted" Fröhlich <bernhard@cacert.org>2021-08-07 21:30:39 +0200
committerGitHub <noreply@github.com>2021-08-07 21:30:39 +0200
commitb5f7c60573e5da9bd49c0b7e6dad90c635e6017f (patch)
tree92c4018031d122b945f32ab07533da0995a6e420
parent05b03d6cb5196f296abde465e3d2ecf1395bc132 (diff)
parentfcd88cae43ef981a6c2ddfa28a62543f0d671d3c (diff)
downloadcacert-devel-b5f7c60573e5da9bd49c0b7e6dad90c635e6017f.tar.gz
cacert-devel-b5f7c60573e5da9bd49c0b7e6dad90c635e6017f.tar.xz
cacert-devel-b5f7c60573e5da9bd49c0b7e6dad90c635e6017f.zip
Merge pull request #26 from jandd/bug-1473
Set GPG digest algorithm to SHA256
-rwxr-xr-xCommModule/server.pl4
1 files changed, 3 insertions, 1 deletions
diff --git a/CommModule/server.pl b/CommModule/server.pl
index 3fd77e6..7e0e1e8 100755
--- a/CommModule/server.pl
+++ b/CommModule/server.pl
@@ -26,6 +26,8 @@ my $serialport="/dev/ttyUSB0";
my $CPSUrl="http://www.cacert.org/cps.php";
+my $GPGCertDigestAlgo="SHA256";
+
my $OCSPUrl="http://ocsp.cacert.org/";
my $gpgbin="/usr/bin/gpg";
@@ -688,7 +690,7 @@ sub SignOpenPGP
$ENV{'LANG'}="";
- my $line="$gpgbin --no-tty --default-key $gpgID --homedir $homedir --default-cert-expire $days"."d --ask-cert-expire --cert-policy-url $CPSUrl --command-fd 0 --status-fd 1 --logger-fd 2 --sign-key $keyid ";
+ my $line="$gpgbin --no-tty --default-key $gpgID --homedir $homedir --default-cert-expire $days"."d --ask-cert-expire --cert-policy-url $CPSUrl --command-fd 0 --cert-digest-algo $GPGCertDigestAlgo --status-fd 1 --logger-fd 2 --sign-key $keyid ";
SysLog($line."\n");
my $pid = open3($stdin,$stdout,$stderr,$line);