diff options
-rwxr-xr-x | src/monkeysphere | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/src/monkeysphere b/src/monkeysphere index fe92960..121db36 100755 --- a/src/monkeysphere +++ b/src/monkeysphere @@ -68,18 +68,7 @@ gpg_user() { # output the ssh fingerprint of a gpg key gpg_ssh_fingerprint() { keyid="$1" - local tmpfile=$(msmktempfile) - - # trap to remove tmp file if break - trap "rm -f $tmpfile" EXIT - - # use temporary file, since ssh-keygen won't accept keys on stdin - gpg_user --export "$keyid" --no-armor | openpgp2ssh "$keyid" >"$tmpfile" - ssh-keygen -l -f "$tmpfile" | awk '{ print $1, $2, $4 }' - - # remove the tmp file - trap - EXIT - rm -rf "$tmpfile" + gpg_user --export "$keyid" --no-armor | "$SYSSHAREDIR/keytrans" openpgp2sshfpr "$keyid" } # take a secret key ID and check that only zero or one ID is provided, |