Skip to content

Commit

Permalink
Fix for #23
Browse files Browse the repository at this point in the history
- Add `--openpgp --personal-digest-preferences RIPEMD160` to gpg command
  line since it seems RIPEMD-160 is the strongest digest supported by
  `Crypt::OpenPGP` for now.
  • Loading branch information
niklasholm committed Aug 29, 2018
1 parent 73ec00d commit 332c203
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Module/Signature.pm
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,8 @@ sub _sign_gpg {
local *D;
my $set_key = '';
$set_key = qq{--default-key "$AUTHOR"} if($AUTHOR);
open D, "| $gpg $set_key --clearsign >> $sigfile.tmp" or die "Could not call $gpg: $!";
open D, "| $gpg $set_key --clearsign --openpgp --personal-digest-preferences RIPEMD160 >> $sigfile.tmp"
or die "Could not call $gpg: $!";
print D $plaintext;
close D;

Expand Down

0 comments on commit 332c203

Please sign in to comment.