1
0
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:
matejcik 2023-10-26 15:46:10 +02:00
parent ec2302d442
commit a4486efc5a

View File

@ -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)