kopia lustrzana https://github.com/conorpp/u2f-zero
script fix
rodzic
581eb81805
commit
b5418aedc7
|
@ -17,7 +17,8 @@ cert=$3
|
|||
hex2pubkey $pub pubkey.pem
|
||||
[[ "$?" -ne "0" ]] && exit 1
|
||||
signcert $key pubkey.pem $cert
|
||||
[[ "$?" -ne "0" ]] && exit 1
|
||||
[[ "$?" -ne "0" ]] && exit 2
|
||||
cbytes.py $cert
|
||||
[[ "$?" -ne "0" ]] && exit 1
|
||||
[[ "$?" -ne "0" ]] && exit 3
|
||||
|
||||
exit 0
|
||||
|
|
|
@ -50,10 +50,9 @@ gencert.sh "$1" "$(cat pubkey.hex)" attest.der > ../firmware/src/cert.c
|
|||
echo "done."
|
||||
echo "building..."
|
||||
|
||||
if [[ $FLASH_TOOLS = 1 ]]
|
||||
if [[ $FLASH_TOOLS != 1 ]]
|
||||
then
|
||||
|
||||
echo "Building from command line only works on Windows"
|
||||
echo "Open Simplicity Studio and rebuild final program."
|
||||
echo "Then you can erase and reprogram U2F Token."
|
||||
exit 1
|
||||
|
|
Ładowanie…
Reference in New Issue