summaryrefslogtreecommitdiff
path: root/src/subcommands/mh/gen-key
diff options
context:
space:
mode:
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>2009-01-31 18:30:59 -0500
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>2009-01-31 18:30:59 -0500
commitc700e9b0dcede303ed1f160ba51f564fd314d2e3 (patch)
tree579690c1cb9e9112aa2fe4924a1c570fee357dcf /src/subcommands/mh/gen-key
parent7d4b4815db8ba2f6f984a18a90b50032cf9158ba (diff)
parent0d36aebed69b154903e158a4c0f5cc8707cf5168 (diff)
merging from jrollins
Diffstat (limited to 'src/subcommands/mh/gen-key')
-rwxr-xr-xsrc/subcommands/mh/gen-key16
1 files changed, 1 insertions, 15 deletions
diff --git a/src/subcommands/mh/gen-key b/src/subcommands/mh/gen-key
index 554c04c..8558441 100755
--- a/src/subcommands/mh/gen-key
+++ b/src/subcommands/mh/gen-key
@@ -14,7 +14,6 @@ local keyType="RSA"
local keyLength="2048"
local keyUsage="auth"
local keyExpire
-local revoker
local hostName=$(hostname -f)
local userID
local keyParameters
@@ -36,10 +35,6 @@ while true ; do
keyExpire="$2"
shift 2
;;
- -r|--revoker)
- revoker="$2"
- shift 2
- ;;
*)
if [ "$(echo "$1" | cut -c 1)" = '-' ] ; then
failure "Unknown option '$1'.
@@ -65,15 +60,6 @@ Key-Usage: $keyUsage
Name-Real: $userID
Expire-Date: $keyExpire"
-# add the revoker field if specified
-# FIXME: the "1:" below assumes that $REVOKER's key is an RSA key.
-# FIXME: key is marked "sensitive"? is this appropriate?
-if [ "$revoker" ] ; then
- keyParameters=\
-"${keyParameters}
-Revoker: 1:${revoker} sensitive"
-fi
-
echo "The following key parameters will be used for the host private key:"
echo "$keyParameters"
@@ -113,4 +99,4 @@ gpg_authentication "--export-options export-minimal --armor --export 0x${fingerp
log info "SSH host public key in OpenPGP form: ${SYSDATADIR}/ssh_host_rsa_key.pub.gpg"
# show info about new key
-show_server_key
+show_key