Refactor show_ca() - Quote all expansions (#494)
Signed-off-by: Richard T Bonhomme <tincantech@protonmail.com>
This commit is contained in:
parent
bf19e794d3
commit
ceb9a2093c
@ -1992,10 +1992,10 @@ OpenSSL failure to process the input"
|
|||||||
# Prints CA cert details in a readable format
|
# Prints CA cert details in a readable format
|
||||||
show_ca() {
|
show_ca() {
|
||||||
# opts support
|
# opts support
|
||||||
opts="-certopt no_pubkey,no_sigdump"
|
out_opts="no_pubkey,no_sigdump"
|
||||||
while [ -n "$1" ]; do
|
while [ -n "$1" ]; do
|
||||||
case "$1" in
|
case "$1" in
|
||||||
full) opts= ;;
|
full) out_opts= ;;
|
||||||
*) warn "Ignoring unknown command option: '$1'" ;;
|
*) warn "Ignoring unknown command option: '$1'" ;;
|
||||||
esac
|
esac
|
||||||
shift
|
shift
|
||||||
@ -2011,7 +2011,7 @@ No such $type file with a basename of '$name' is present.
|
|||||||
Expected to find this file at:
|
Expected to find this file at:
|
||||||
$in_file"
|
$in_file"
|
||||||
|
|
||||||
verify_file $format "$in_file" || die "\
|
verify_file "$format" "$in_file" || die "\
|
||||||
This file is not a valid $type file:
|
This file is not a valid $type file:
|
||||||
$in_file"
|
$in_file"
|
||||||
|
|
||||||
@ -2021,9 +2021,8 @@ $in_file"
|
|||||||
This file is stored at:
|
This file is stored at:
|
||||||
* $in_file"
|
* $in_file"
|
||||||
|
|
||||||
# shellcheck disable=SC2086 # Ignore unquoted variables
|
easyrsa_openssl "$format" -in "$in_file" -noout -text\
|
||||||
easyrsa_openssl $format -in "$in_file" -noout -text\
|
-nameopt multiline -certopt "$out_opts" || die "\
|
||||||
-nameopt multiline $opts || die "\
|
|
||||||
OpenSSL failure to process the input"
|
OpenSSL failure to process the input"
|
||||||
} # => show_ca()
|
} # => show_ca()
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user