summaryrefslogtreecommitdiff
path: root/src/subcommands/mh/gen-key
diff options
context:
space:
mode:
Diffstat (limited to 'src/subcommands/mh/gen-key')
-rwxr-xr-xsrc/subcommands/mh/gen-key14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/subcommands/mh/gen-key b/src/subcommands/mh/gen-key
index da2e40d..9f26087 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
@@ -40,10 +39,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'.
@@ -67,15 +62,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"