You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enable keyfromlabel and enginepkcs11 systemtests with pkcs11-provider
- Simplify configuration management by deducing SoftHSM module path
from openssl config
- Determine the engine flag (-E) value from openssl config
- Drop unused/unneeded environment variables
- Run pkcs11-provider tests on Debian "sid" ossl3 flavor
softhsm2-util --delete-token --token "softhsm2-enginepkcs11">/dev/null 2>&1|| echo_i "softhsm2-enginepkcs11 token not found for cleaning"
35
+
OPENSSL_CONF= softhsm2-util --delete-token --token "softhsm2-enginepkcs11">/dev/null 2>&1|| echo_i "softhsm2-enginepkcs11 token not found for cleaning"
Copy file name to clipboardExpand all lines: bin/tests/system/enginepkcs11/setup.sh
+6-4Lines changed: 6 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -16,12 +16,14 @@
16
16
17
17
set -e
18
18
19
-
softhsm2-util --init-token --free --pin 1234 --so-pin 1234 --label "softhsm2-enginepkcs11"| awk '/^The token has been initialized and is reassigned to slot/ { print $NF }'
19
+
OPENSSL_CONF= softhsm2-util --init-token --free --pin 1234 --so-pin 1234 --label "softhsm2-enginepkcs11"| awk '/^The token has been initialized and is reassigned to slot/ { print $NF }'
20
20
21
21
printf'%s'"${HSMPIN:-1234}"> pin
22
+
parse_openssl_config
22
23
PWD=$(pwd)
23
24
24
25
copy_setports ns1/named.conf.in ns1/named.conf
26
+
sed -e "s/@ENGINE_ARGS@/${ENGINE_ARG}/g"< ns1/named.args.in > ns1/named.args
Copy file name to clipboardExpand all lines: bin/tests/system/keyfromlabel/clean.sh
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -24,4 +24,4 @@ rm -f keyfromlabel.out.*
24
24
rm -f pkcs11-tool.out.*
25
25
rm -f signer.out.*
26
26
27
-
softhsm2-util --delete-token --token "softhsm2-keyfromlabel">/dev/null 2>&1|| echo_i "softhsm2-keyfromlabel token not found for cleaning"
27
+
OPENSSL_CONF= softhsm2-util --delete-token --token "softhsm2-keyfromlabel">/dev/null 2>&1|| echo_i "softhsm2-keyfromlabel token not found for cleaning"
0 commit comments