From c64e2fe42113f093b62c9441988df32202801724 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Fri, 5 Jul 2024 16:09:30 -0400 Subject: [PATCH] fixup! Add setup script for testing with Kryoptic module --- tests/setup-kryoptic.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/setup-kryoptic.sh b/tests/setup-kryoptic.sh index ad8a2ca9..2e8c31fd 100755 --- a/tests/setup-kryoptic.sh +++ b/tests/setup-kryoptic.sh @@ -93,7 +93,7 @@ export KRYOPTIC_CONF="$TMPPDIR/tokens/kryoptic.sql" title LINE "Creating Kyroptic database" export GNUTLS_SO_PIN=${PINVALUE} -p11tool --provider=${P11LIB} --initialize \ +p11tool --provider="${P11LIB}" --initialize \ --label="Test" \ "pkcs11:manufacturer=Kryoptic%20Project" 2>&1 unset GNUTLS_SO_PIN @@ -103,11 +103,11 @@ title LINE "Setting User PIN" # marks at the end of the manufacturer and token names when using the # --initialize-pin option export GNUTLS_PIN=${PINVALUE} -p11tool --provider=${P11LIB} --initialize-pin \ +p11tool --provider="${P11LIB}" --initialize-pin \ "pkcs11:manufacturer=Kryoptic%20Project%00;token=Test%00" 2>&1 -P11DEFARGS="--module=${P11LIB}--login --pin=${PINVALUE}" +P11DEFARGS="--module=${P11LIB} --login --pin=${PINVALUE}" # General cert configs cat >> "${TMPPDIR}/cert.cfg" <&1 "${certtool}" --generate-self-signed --outfile="${CACRT}.crt" \