Skip to content

Commit 5253a85

Browse files
committed
Unit test: Use correct command to create safessl-easyrsa.cnf
Use: - Linux: write safe-cnf - Windows: make-safe-ssl Signed-off-by: Richard T Bonhomme <[email protected]>
1 parent b0f7a60 commit 5253a85

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

dev/easytls-unit-tests.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,15 @@ warn() { printf "%s\n" "$*"; }
155155

156156
build_test_pki ()
157157
{
158+
# safessl-easyrsa.cnfmust be in PKI for easytls-cryptv2-verify.sh
159+
if [ "$EASYTLS_FOR_WINDOWS" ]; then
160+
"$EASYRSA_CMD" $EASYRSA_OPTS make-safe-ssl
161+
else
162+
"$EASYRSA_CMD" $EASYRSA_OPTS write safe-cnf "$PKI_DIR" # ./et-tdir${loops}
163+
fi
164+
print "==>> safessl-easyrsa.cnf created in $PKI_DIR"
165+
158166
for i in \
159-
"make-safe-ssl" \
160167
"--req-cn='easytls-unit-test' build-ca nopass" \
161168
"build-server-full s01 nopass" \
162169
"build-server-full s02 nopass" \

0 commit comments

Comments
 (0)