summaryrefslogtreecommitdiff
path: root/src/monkeysphere-host
diff options
context:
space:
mode:
Diffstat (limited to 'src/monkeysphere-host')
-rwxr-xr-xsrc/monkeysphere-host9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/monkeysphere-host b/src/monkeysphere-host
index 00f7c34..a67715f 100755
--- a/src/monkeysphere-host
+++ b/src/monkeysphere-host
@@ -172,6 +172,11 @@ show_key() {
# import the host key into the tmp dir
gpg --quiet --import <"$HOST_KEY_FILE"
+ # create the ssh key
+ TMPSSH="$GNUPGHOME"/ssh_host_key_rsa_pub
+ openpgp2ssh <"$HOST_KEY_FILE" 2>/dev/null >"$TMPSSH"
+
+ # get the gpg fingerprint
HOST_FINGERPRINT=$(gpg --quiet --list-keys --with-colons --with-fingerprint \
| grep '^fpr:' | cut -d: -f10 )
@@ -188,9 +193,7 @@ show_key() {
# list the ssh fingerprint
echo -n "ssh fingerprint: "
- ssh-keygen -l -f /dev/stdin \
- <<<$(openpgp2ssh <"$HOST_KEY_FILE" 2>/dev/null) \
- | awk '{ print $1, $2, $4 }'
+ ssh-keygen -l -f "$TMPSSH" | awk '{ print $1, $2, $4 }'
# remove the tmp file
trap - EXIT
rw-r--r--tags/a7/e6/20151023200013.ef0c878cb8a7eb93db9612aa@mega-nerd.com/inbox0
-rw-r--r--tags/a7/e6/20151023200013.ef0c878cb8a7eb93db9612aa@mega-nerd.com/old0
-rw-r--r--tags/a7/e6/20170721030302.84B407143@lxp5.free-owl.de/sys0
-rw-r--r--tags/a7/e6/20170721030302.84B407143@lxp5.free-owl.de/unread0
-rw-r--r--tags/a7/e6/20180331050237.87EA241A8@lxp5.free-owl.de/sys0
-rw-r--r--tags/a7/e6/20180331050237.87EA241A8@lxp5.free-owl.de/unread0
-rw-r--r--tags/a7/e6/E1I3r4y-00067P-6z@maintainer.skolelinux.no/debian0
-rw-r--r--tags/a7/e6/E1S4Vp8-000095-Va@swivel.zugschlus.de/debian0
-rw-r--r--tags/a7/e6/ceeec23231367a4b90baa96d49b28e01@sms-backup-plus.local/inbox0
-rw-r--r--tags/a7/e6/ceeec23231367a4b90baa96d49b28e01@sms-backup-plus.local/old0
-rw-r--r--tags/a7/e6/l03110700b117583e6383@%5b194.239.159.26%5d/inbox0
-rw-r--r--tags/a7/e6/l03110700b117583e6383@%5b194.239.159.26%5d/old0
19 files changed, 0 insertions, 0 deletions