openpgp2ssh in ms-host show-key function takes the host gpg key from the temporary...
authorJameson Graef Rollins <jrollins@finestructure.net>
Sun, 1 Mar 2009 01:56:18 +0000 (20:56 -0500)
committerJameson Graef Rollins <jrollins@finestructure.net>
Sun, 1 Mar 2009 01:56:18 +0000 (20:56 -0500)
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 \