From 410a3d3286b6776de11d876aacf908c765474d88 Mon Sep 17 00:00:00 2001 From: Richard T Bonhomme Date: Thu, 28 Apr 2022 13:59:07 +0100 Subject: [PATCH] Purge $opts from sign_req() Signed-off-by: Richard T Bonhomme --- easyrsa3/easyrsa | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/easyrsa3/easyrsa b/easyrsa3/easyrsa index de446b0..9bdc1de 100755 --- a/easyrsa3/easyrsa +++ b/easyrsa3/easyrsa @@ -542,7 +542,7 @@ $EASYRSA_EC_DIR" rm -rf "$EASYRSA_EC_DIR" die "\ Failed to generate ecparam file (permissions?) when writing to: -$out" +$EASYRSA_ALGO_PARAMS" } # => verify_curve_ec() # Verify if Edwards Curve exists @@ -1181,7 +1181,6 @@ key: $key_out" # common signing backend sign_req() { crt_type="$1" - opts="" req_in="$EASYRSA_PKI/reqs/$2.req" crt_out="$EASYRSA_PKI/issued/$2.crt" @@ -1301,9 +1300,8 @@ $ext_tmp" # sign request crt_out_tmp="$(easyrsa_mktemp)" || die "Failed to create temporary file" - # shellcheck disable=SC2086 # Ignore unquoted variables easyrsa_openssl ca -utf8 -in "$req_in" -out "$crt_out_tmp" \ - -extfile "$ext_tmp" -days "$EASYRSA_CERT_EXPIRE" -batch $opts \ + -extfile "$ext_tmp" -days "$EASYRSA_CERT_EXPIRE" -batch \ ${EASYRSA_PASSIN:+-passin "$EASYRSA_PASSIN"} \ || die "signing failed (openssl output above may have more detail)"