Skip to content

Commit

Permalink
Unit test: Use 'easyrsa write safe-cnf' if 'make-safe-ssl' fails
Browse files Browse the repository at this point in the history
This is due to Linux test using EasyRSA-Master
and Windows test using EasyRSA-release 3.1.x (currently)

Signed-off-by: Richard T Bonhomme <[email protected]>
  • Loading branch information
TinCanTech committed Feb 22, 2024
1 parent 0cfe916 commit b0f7a60
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion dev/easytls-unit-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -662,7 +662,12 @@ elif [ -n "${EASYTLS_REMOTE_CI}" ]; then
print "*** Update safessl-easyrsa.cnf - easyrsa init-pki"
"${EASYRSA_CMD}" --pki-dir="${WORK_DIR}/et-tdir${loops}" --batch init-pki || fail "init-pki"

"${EASYRSA_CMD}" --pki-dir="${WORK_DIR}/et-tdir${loops}" --batch make-safe-ssl
if "${EASYRSA_CMD}" --pki-dir="${WORK_DIR}/et-tdir${loops}" --batch make-safe-ssl
then
: # ok
else
"${EASYRSA_CMD}" --pki-dir="${WORK_DIR}/et-tdir${loops}" --batch write safe-cnf || fail "write safe-cnf"
fi

cp -vf "${WORK_DIR}/et-tdir${loops}/safessl-easyrsa.cnf" ./safessl-easyrsa.cnf || \
fail "(1) cp ${WORK_DIR}/et-tdir${loops}/safessl-easyrsa.cnf ./safessl-easyrsa.cnf"
Expand Down

0 comments on commit b0f7a60

Please sign in to comment.