From f39330f6cbaa70a7cf89b237c80c08cbf80b2c6f Mon Sep 17 00:00:00 2001 From: Eric F Crist Date: Wed, 16 Jan 2019 15:43:31 -0600 Subject: [PATCH] Unquote $opt for revoke as it may be empty In testing for #63 I discovered that there is at least one instance of a quoted $opts for the revoke command that causes openssl to throw errors. Signed-off-by: Eric F Crist --- easyrsa3/easyrsa | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/easyrsa3/easyrsa b/easyrsa3/easyrsa index 198692f..6e6593e 100755 --- a/easyrsa3/easyrsa +++ b/easyrsa3/easyrsa @@ -881,7 +881,7 @@ at: $crt_in" # make safessl-easyrsa.cnf make_ssl_config - "$EASYRSA_OPENSSL" ca -utf8 -revoke "$crt_in" -config "$EASYRSA_SAFE_CONF" "$opts" || die "\ + "$EASYRSA_OPENSSL" ca -utf8 -revoke "$crt_in" -config "$EASYRSA_SAFE_CONF" $opts || die "\ Failed to revoke certificate: revocation command failed." # move revoked files so we can reissue certificates with the same name @@ -940,7 +940,7 @@ input in file: $req_in" fi # move the rest of the files (p12, p7, ...) - for file in "$EASYRSA_PKI/private/$1\.???" + for file in $EASYRSA_PKI/private/$1\.??? do # get file extension file_ext="${file##*.}"