mirror of
https://github.com/polhenarejos/pico-hsm.git
synced 2026-04-17 13:48:27 +00:00
Sometimes sc-hsm-tool returns $?=1 despite it succeeds.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
parent
7c8b39ff82
commit
5297e368d1
1 changed files with 1 additions and 1 deletions
|
|
@ -49,7 +49,7 @@ for alg in ${algs[*]}; do
|
||||||
grep -q "Key ref[[:blank:]]*: 10" <<< $e && exit $? || echo -e ".\t${OK}"
|
grep -q "Key ref[[:blank:]]*: 10" <<< $e && exit $? || echo -e ".\t${OK}"
|
||||||
echo -n " Unwrap key..."
|
echo -n " Unwrap key..."
|
||||||
sc-hsm-tool --unwrap-key wrap-key.bin --key-reference 10 --pin 648219 --force > /dev/null 2>&1
|
sc-hsm-tool --unwrap-key wrap-key.bin --key-reference 10 --pin 648219 --force > /dev/null 2>&1
|
||||||
test $? -eq 0 && echo -n "." || exit $?
|
echo -n "." || exit $?
|
||||||
e=$(pkcs15-tool -D 2>&1)
|
e=$(pkcs15-tool -D 2>&1)
|
||||||
grep -q "Key ref[[:blank:]]*: 10" <<< $e && echo -e ".\t${OK}" || exit $?
|
grep -q "Key ref[[:blank:]]*: 10" <<< $e && echo -e ".\t${OK}" || exit $?
|
||||||
echo -n " Cleaning..."
|
echo -n " Cleaning..."
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue