Skip to content

Commit

Permalink
use gpg2 instead of gpg for modern keys (jaymzh#63)
Browse files Browse the repository at this point in the history
* use gpg2 instead of gpg for modern keys

* add other types of key like eliptic ciurve ones and other by adding unknown
  • Loading branch information
lhirlimann authored and jaymzh committed Jan 14, 2018
1 parent 09a3466 commit 9fdc9b0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pius-party-worksheet
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ sub print_html_header
sub get_fingerprints
{
my $keyring = shift;
my $cmd = 'gpg --fingerprint --no-default-keyring --no-options'
my $cmd = 'gpg2 --fingerprint --no-default-keyring --no-options'
. " --with-colons --keyring $keyring | egrep "
. '\'^(pub|fpr|uid):\'';
my @fps = `$cmd`;
Expand Down Expand Up @@ -90,6 +90,8 @@ sub parse_fingerprints
$type = 'El Gamal';
} elsif ($type eq '1') {
$type = 'RSA';
} else {
$type = 'Unknown';
}

if (length($fingerprint) == 40) {
Expand Down

0 comments on commit 9fdc9b0

Please sign in to comment.