Reluctantly accept params
This commit is contained in:
parent
1fa089709e
commit
85b60e0af4
|
@ -40,7 +40,7 @@ NODH=
|
||||||
function show_help {
|
function show_help {
|
||||||
echo ''
|
echo ''
|
||||||
echo 'freedombone-addcert -h [hostname] -c [country code] -a [area] -l [location]'
|
echo 'freedombone-addcert -h [hostname] -c [country code] -a [area] -l [location]'
|
||||||
echo ' -o [organisation] -u [unit]'
|
echo ' -o [organisation] -u [unit] --ca "" --nodh ""'
|
||||||
echo ''
|
echo ''
|
||||||
echo 'Creates a self-signed certificate for the given hostname'
|
echo 'Creates a self-signed certificate for the given hostname'
|
||||||
echo ''
|
echo ''
|
||||||
|
@ -51,8 +51,8 @@ function show_help {
|
||||||
echo ' -l --location [locn] Optional location name'
|
echo ' -l --location [locn] Optional location name'
|
||||||
echo ' -o --organisation [name] Optional organisation name'
|
echo ' -o --organisation [name] Optional organisation name'
|
||||||
echo ' -u --unit [name] Optional unit name'
|
echo ' -u --unit [name] Optional unit name'
|
||||||
echo ' --nodh Do not calculate DH params'
|
echo ' --nodh "" Do not calculate DH params'
|
||||||
echo ' --ca Certificate authority cert'
|
echo ' --ca "" Certificate authority cert'
|
||||||
echo ''
|
echo ''
|
||||||
exit 0
|
exit 0
|
||||||
}
|
}
|
||||||
|
@ -90,10 +90,12 @@ case $key in
|
||||||
UNIT="$1"
|
UNIT="$1"
|
||||||
;;
|
;;
|
||||||
--ca)
|
--ca)
|
||||||
|
shift
|
||||||
EXTENSIONS="-extensions v3_ca"
|
EXTENSIONS="-extensions v3_ca"
|
||||||
ORGANISATION="Freedombone-CA"
|
ORGANISATION="Freedombone-CA"
|
||||||
;;
|
;;
|
||||||
--nodh)
|
--nodh)
|
||||||
|
shift
|
||||||
NODH="true"
|
NODH="true"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
|
Loading…
Reference in New Issue