From da2bd3afbd968b6ce68bad50536904acf5b3e7d5 Mon Sep 17 00:00:00 2001 From: Eric F Crist Date: Thu, 14 Dec 2017 08:43:24 -0600 Subject: [PATCH] More travis-ci changes, SAN fix, maybe related to #89 Signed-off-by: Eric F Crist --- easyrsa3/easyrsa | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/easyrsa3/easyrsa b/easyrsa3/easyrsa index 5a305db..a987f33 100755 --- a/easyrsa3/easyrsa +++ b/easyrsa3/easyrsa @@ -412,7 +412,8 @@ Your newly created PKI dir is: $EASYRSA_PKI # build-ca backend: build_ca() { - opts= sub_ca= + opts="" + sub_ca="" while [ -n "$1" ]; do case "$1" in nopass) opts="$opts -nodes" ;; @@ -570,12 +571,15 @@ key: $key_out # common signing backend sign_req() { - crt_type="$1" opts= + crt_type="$1" + opts="" req_in="$EASYRSA_PKI/reqs/$2.req" crt_out="$EASYRSA_PKI/issued/$2.crt" # Randomize Serial number - i= serial= check_serial= + i="" + serial="" + check_serial="" for i in 1 2 3 4 5; do "$EASYRSA_OPENSSL" rand -hex -out "$EASYRSA_PKI/serial" 16 serial="$(cat "$EASYRSA_PKI/serial")" @@ -651,7 +655,7 @@ $(display_dn req "$req_in") if [ "$crt_type" = 'server' ]; then echo "$EASYRSA_EXTRA_EXTS" | grep -q subjectAltName || - print $(default_server_san "$req_in") + print "default_server_san $req_in" fi # Add any advanced extensions supplied by env-var: @@ -974,8 +978,12 @@ Run easyrsa without commands for usage help." opts="-${type}opt no_pubkey,no_sigdump" while [ -n "$1" ]; do case "$1" in - full) opts= ;; - *) warn "Ignoring unknown command option: '$1'" ;; + full) + opts="" + ;; + *) + warn "Ignoring unknown command option: '$1'" + ;; esac shift done