Skip to content

Commit

Permalink
Unit test: Use correct command to create safessl-easyrsa.cnf
Browse files Browse the repository at this point in the history
Use:
- Linux: write safe-cnf
- Windows: make-safe-ssl

Signed-off-by: Richard T Bonhomme <[email protected]>
  • Loading branch information
TinCanTech committed Feb 22, 2024
1 parent b0f7a60 commit 5253a85
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion dev/easytls-unit-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,15 @@ warn() { printf "%s\n" "$*"; }

build_test_pki ()
{
# safessl-easyrsa.cnfmust be in PKI for easytls-cryptv2-verify.sh
if [ "$EASYTLS_FOR_WINDOWS" ]; then
"$EASYRSA_CMD" $EASYRSA_OPTS make-safe-ssl
else
"$EASYRSA_CMD" $EASYRSA_OPTS write safe-cnf "$PKI_DIR" # ./et-tdir${loops}
fi
print "==>> safessl-easyrsa.cnf created in $PKI_DIR"

for i in \
"make-safe-ssl" \
"--req-cn='easytls-unit-test' build-ca nopass" \
"build-server-full s01 nopass" \
"build-server-full s02 nopass" \
Expand Down

0 comments on commit 5253a85

Please sign in to comment.