Add initialization test script with pkcs11

Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
Pol Henarejos
2023-09-24 10:30:59 +02:00
parent 08e7d74a81
commit d906df2809
4 changed files with 18 additions and 10 deletions

View File

@@ -1,4 +1,4 @@
#!/bin/bash -eu
#!/bin/bash
python3 tools/pico-hsm-tool.py --pin 648219 initialize --so-pin 57621880 --silent
test $? -eq 0 || exit $?
@@ -40,5 +40,5 @@ grep -q CKR_PIN_LOCKED <<< $e || exit $?
pkcs11-tool --login --login-type so --so-pin 3537363231383830 --init-pin --new-pin 648219
test $? -eq 0 || exit $?
pkcs11-tool --login --pin 648219 -I > /dev/null
pkcs11-tool --login --pin 648219 -I
test $? -eq 0 || exit $?