From 34ad764d99b0a90f13cecfefa776a1fcbec95d3b Mon Sep 17 00:00:00 2001 From: Richard T Bonhomme Date: Thu, 28 Apr 2022 12:54:44 +0100 Subject: [PATCH] Use file-name $EASYRSA_ALGO_PARAMS to output test elliptic curve Signed-off-by: Richard T Bonhomme --- easyrsa3/easyrsa | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/easyrsa3/easyrsa b/easyrsa3/easyrsa index eb4ee27..32b7047 100755 --- a/easyrsa3/easyrsa +++ b/easyrsa3/easyrsa @@ -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