fix bad test for BITS defaulting
This commit is contained in:
parent
0fa8372a34
commit
8ae7c44e06
1 changed files with 3 additions and 3 deletions
|
|
@ -99,7 +99,7 @@ fi
|
|||
|
||||
case "$TYPE" in
|
||||
ecdsa)
|
||||
if [[ -n "$BITS" ]]; then
|
||||
if [[ -z "$BITS" ]]; then
|
||||
BITS='521'
|
||||
else
|
||||
# NOTE: ECDSA keys can only operate on elliptic curves
|
||||
|
|
@ -116,12 +116,12 @@ case "$TYPE" in
|
|||
ed25519)
|
||||
# NOTE: the value of BITS does not matter for Ed25519
|
||||
# NOTE: as it operates on a fixed size elliptic curve
|
||||
if [[ -n "$BITS" ]]; then
|
||||
if [[ -z "$BITS" ]]; then
|
||||
BITS='256'
|
||||
fi
|
||||
;;
|
||||
rsa)
|
||||
if [[ -n "$BITS" ]]; then
|
||||
if [[ -z "$BITS" ]]; then
|
||||
BITS='4096'
|
||||
else
|
||||
case "$BITS" in
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue