diff --git a/easyrsa3/easyrsa b/easyrsa3/easyrsa index 261336f..e9c75a4 100755 --- a/easyrsa3/easyrsa +++ b/easyrsa3/easyrsa @@ -781,7 +781,9 @@ $EASYRSA_EXTRA_EXTS" [ $EASYRSA_BATCH ] && opts="$opts -batch" # shellcheck disable=2086,2148 algo_opts="" - if [ "ed" != $EASYRSA_ALGO ];then + if [ "ed" = "$EASYRSA_ALGO" ]; then + algo_opts=" -newkey $EASYRSA_CURVE " + else algo_opts=" -newkey $EASYRSA_ALGO:$EASYRSA_ALGO_PARAMS " fi easyrsa_openssl req -utf8 -new $algo_opts \