projects
/
monkeysphere.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
some general fixes:
[monkeysphere.git]
/
src
/
share
/
mh
/
gen_key
diff --git
a/src/share/mh/gen_key
b/src/share/mh/gen_key
index c0445db6e6bc38208ca4bb91e2474958c382a05f..a73d85e7e75bfa5b0929877b1d387354596d211a 100644
(file)
--- a/
src/share/mh/gen_key
+++ b/
src/share/mh/gen_key
@@
-24,7
+24,7
@@
local fingerprint
# check for presense of secret key
# FIXME: is this the proper test to be doing here?
# check for presense of secret key
# FIXME: is this the proper test to be doing here?
-fingerprint_
server
_key >/dev/null \
+fingerprint_
host
_key >/dev/null \
&& failure "An OpenPGP host key already exists."
# get options
&& failure "An OpenPGP host key already exists."
# get options
@@
-83,7
+83,7
@@
log verbose "generating host key..."
echo "$keyParameters" | gpg_host --batch --gen-key
# find the key fingerprint of the newly generated key
echo "$keyParameters" | gpg_host --batch --gen-key
# find the key fingerprint of the newly generated key
-fingerprint=$(fingerprint_
server
_key)
+fingerprint=$(fingerprint_
host
_key)
# translate the private key to ssh format, and export to a file
# for sshs usage.
# translate the private key to ssh format, and export to a file
# for sshs usage.