projects
/
monkeysphere.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rename function to get the host fingerprint, and fix some
[monkeysphere.git]
/
src
/
share
/
mh
/
gen_key
diff --git
a/src/share/mh/gen_key
b/src/share/mh/gen_key
index 44109bb98eddb255e8a589f1cae1f6befaab4b24..7b427e4cf628d69b9b661ffbc8a0abc567560d9d 100644
(file)
--- a/
src/share/mh/gen_key
+++ b/
src/share/mh/gen_key
@@
-21,7
+21,7
@@
local keyExpire="0"
local userID
# check for presense of a key
local userID
# check for presense of a key
-[ "$FINGERPRINT" ] && \
+[ "$
HOST_
FINGERPRINT" ] && \
failure "An OpenPGP host key already exists."
# get options
failure "An OpenPGP host key already exists."
# get options
@@
-62,7
+62,7
@@
Expire-Date: $keyExpire
EOF
# find the key fingerprint of the newly converted key
EOF
# find the key fingerprint of the newly converted key
-HOST_FINGERPRINT=$(
fingerprint_host_key
)
+HOST_FINGERPRINT=$(
get_host_fingerprint
)
export HOST_FINGERPRINT
# translate the private key to ssh format, and export to a file
export HOST_FINGERPRINT
# translate the private key to ssh format, and export to a file