openpgp2ssh in ms-host show-key function takes the host gpg key from the temporary...
[monkeysphere.git] / src / monkeysphere-host
index 5e7a9312759f0e8e2772cd868d8a8c79d6eba57c..9e4a8c4e4723ac891bc2e5cbbbe5b808b5e29f1c 100755 (executable)
@@ -174,7 +174,7 @@ show_key() {
 
     # create the ssh key
     TMPSSH="$GNUPGHOME"/ssh_host_key_rsa_pub
-    openpgp2ssh <"$HOST_KEY_FILE" 2>/dev/null >"$TMPSSH"
+    gpg --export | openpgp2ssh 2>/dev/null >"$TMPSSH"
 
     # get the gpg fingerprint
     HOST_FINGERPRINT=$(gpg --quiet --list-keys --with-colons --with-fingerprint \