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
/
import_key
diff --git
a/src/share/mh/import_key
b/src/share/mh/import_key
index 0f16d2791cf66359a13d4ab43c8af729904077e8..e7b713f8b7e1de595a60370836fcecaa07ce6a42 100644
(file)
--- a/
src/share/mh/import_key
+++ b/
src/share/mh/import_key
@@
-20,7
+20,7
@@
local userID
# 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
@@
-72,7
+72,7
@@
log verbose "importing ssh key..."
pem2openpgp "$userID" "$keyExpire" < "$sshKey" | gpg_host --import)
# find the key fingerprint of the newly converted key
pem2openpgp "$userID" "$keyExpire" < "$sshKey" | gpg_host --import)
# find the key fingerprint of the newly converted key
-fingerprint=$(fingerprint_
server
_key)
+fingerprint=$(fingerprint_
host
_key)
# export host ownertrust to authentication keyring
log verbose "setting ultimate owner trust for host key..."
# export host ownertrust to authentication keyring
log verbose "setting ultimate owner trust for host key..."