pico-hsm/tests/scripts/pkcs11_test.sh
Pol Henarejos 2853b38b08
Add PKCS11 tool test
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
2023-10-11 13:00:24 +02:00

11 lines
270 B
Bash
Executable file

#!/bin/bash
source ./tests/scripts/func.sh
reset
test $? -eq 0 || exit $?
echo -n " Test PKCS11 tool..."
gen_and_check rsa:2048
test $? -eq 0 && echo -n "." || exit $?
pkcs11-tool --test -l --pin 648219 > /dev/null 2>&1
test $? -eq 0 && echo -e ".\t${OK}" || exit $?