Use file-name $EASYRSA_ALGO_PARAMS to output test elliptic curve

Signed-off-by: Richard T Bonhomme <tincantech@protonmail.com>
This commit is contained in:
Richard T Bonhomme 2022-04-28 12:54:44 +01:00
parent 71076aa608
commit 34ad764d99
No known key found for this signature in database
GPG Key ID: 2D767DB92FB6C246

View File

@ -532,8 +532,8 @@ Failed creating ecparams dir (permissions?) at:
$EASYRSA_EC_DIR"
# Check that the required ecparams file exists
out="${EASYRSA_EC_DIR}/${EASYRSA_CURVE}.pem"
if easyrsa_openssl ecparam -name "$EASYRSA_CURVE" -out "$out" 1>/dev/null
if easyrsa_openssl ecparam -name "$EASYRSA_CURVE" \
-out "$EASYRSA_ALGO_PARAMS" 1>/dev/null
then
return 0
fi