Skip to content

Commit

Permalink
easyrsa_openssl(), verify_working_env(): Improve verbose messages
Browse files Browse the repository at this point in the history
Signed-off-by: Richard T Bonhomme <[email protected]>
  • Loading branch information
TinCanTech committed Oct 25, 2023
1 parent 361ac95 commit 607baaf
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions easyrsa3/easyrsa
Original file line number Diff line number Diff line change
Expand Up @@ -1105,6 +1105,7 @@ easyrsa_mktemp safe_ssl_cnf_tmp"
# sign-req or gen-req.
easyrsa_openssl() {
openssl_command="$1"; shift
verbose "> easyrsa_openssl - BEGIN $openssl_command"

# Do not allow 'rand' here, see easyrsa_random()
case "$openssl_command" in
Expand All @@ -1126,15 +1127,16 @@ easyrsa_openssl() {
# VERIFY safe temp-file exists
if [ -e "$safe_ssl_cnf_tmp" ]; then
verbose "\
easyrsa_openssl: Safe SSL conf OK: $safe_ssl_cnf_tmp"
> easyrsa_openssl: Safe SSL conf OK: $safe_ssl_cnf_tmp"
export OPENSSL_CONF="$safe_ssl_cnf_tmp"
else
verbose "\
easyrsa_openssl: No Safe SSL conf, FALLBACK to default"
> easyrsa_openssl: No Safe SSL conf, FALLBACK to default"
export OPENSSL_CONF="$EASYRSA_SSL_CONF"
fi

# Execute command - Return on success
verbose "> easyrsa_openssl - EXEC $openssl_command $*"
if [ "$openssl_command" = "makesafeconf" ]; then
# COPY temp-file to safessl-easyrsa.cnf
unset -v makesafeconf
Expand Down Expand Up @@ -5953,7 +5955,7 @@ Temporary directory does not exist:
* $EASYRSA_TEMP_DIR"
fi
fi
verbose "verify_working_env: COMPLETED"
verbose "verify_working_env: COMPLETED Handover-to: $cmd"
} # => verify_working_env()

# variable assignment by indirection.
Expand Down

0 comments on commit 607baaf

Please sign in to comment.