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 <ecrist@secure-computing.net>
This commit is contained in:
parent
fc804ac1c3
commit
f39330f6cb
@ -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##*.}"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user