From 5253a85dce05e46db235e605e43734e71bfba363 Mon Sep 17 00:00:00 2001 From: Richard T Bonhomme Date: Thu, 22 Feb 2024 19:26:40 +0000 Subject: [PATCH] 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 --- dev/easytls-unit-tests.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/dev/easytls-unit-tests.sh b/dev/easytls-unit-tests.sh index 7993dbd..8215b9b 100755 --- a/dev/easytls-unit-tests.sh +++ b/dev/easytls-unit-tests.sh @@ -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" \