mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-18 04:18:10 +00:00
feat(python): allow devkit-signed firmwares in trezorctl fw update
This commit is contained in:
parent
ec2302d442
commit
a4486efc5a
@ -151,6 +151,10 @@ def validate_signatures(
|
||||
click.echo("Unsigned firmware looking OK.")
|
||||
|
||||
except firmware.FirmwareIntegrityError as e:
|
||||
try:
|
||||
fw.verify(dev_keys=True)
|
||||
click.echo("WARNING: Firmware for development kit only.")
|
||||
except firmware.FirmwareIntegrityError:
|
||||
click.echo(e)
|
||||
click.echo("Firmware validation failed, aborting.")
|
||||
sys.exit(4)
|
||||
|
Loading…
Reference in New Issue
Block a user