Skip to content

Commit

Permalink
unit test: Remote CI: Easy-RSA: 'init-pki' catch error
Browse files Browse the repository at this point in the history
Signed-off-by: Richard T Bonhomme <[email protected]>
  • Loading branch information
TinCanTech committed Aug 25, 2023
1 parent e6be0f8 commit eab1b10
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dev/easytls-unit-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -615,11 +615,13 @@ elif [ -n "${EASYTLS_REMOTE_CI}" ]; then

# Update safessl-easyrsa.cnf
print "*** Update safessl-easyrsa.cnf - easyrsa init-pki"
"${EASYRSA_CMD}" --pki-dir="${WORK_DIR}/et-tdir${loops}" --batch 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

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"

# Remove the temp PKI - Only require safessl-easyrsa.cnf
rm -rf "${WORK_DIR}/et-tdir${loops}"

Expand Down

0 comments on commit eab1b10

Please sign in to comment.