# They are Copyright 2008, and are all released under the GPL, version 3
# or later.
+gen_key() {
+
local keyType="RSA"
local keyLength="2048"
local keyUsage="auth"
# get options
while true ; do
case "$1" in
- -h|--hostname)
- hostName="$2"
- shift 2
- ;;
-l|--length)
keyLength="$2"
shift 2
failure "Unknown option '$1'.
Type '$PGRM help' for usage."
fi
+ hostName="$1"
+ shift;
break
;;
esac
# show info about new key
show_key
+
+}
# They are Copyright 2008, and are all released under the GPL, version 3
# or later.
+import_key() {
+
local hostName=$(hostname -f)
local keyFile="/etc/ssh/ssh_host_rsa_key"
local keyExpire
# get options
while true ; do
case "$1" in
- -h|--hostname)
- hostName="$2"
- shift 2
- ;;
-f|--keyfile)
keyFile="$2"
shift 2
failure "Unknown option '$1'.
Type '$PGRM help' for usage."
fi
+ hostName="$1"
+ shift
+ ;;
break
;;
esac
# show info about new key
show_key
+
+}