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,9 +151,13 @@ def validate_signatures(
click.echo("Unsigned firmware looking OK.") click.echo("Unsigned firmware looking OK.")
except firmware.FirmwareIntegrityError as e: except firmware.FirmwareIntegrityError as e:
click.echo(e) try:
click.echo("Firmware validation failed, aborting.") fw.verify(dev_keys=True)
sys.exit(4) click.echo("WARNING: Firmware for development kit only.")
except firmware.FirmwareIntegrityError:
click.echo(e)
click.echo("Firmware validation failed, aborting.")
sys.exit(4)
def validate_fingerprint( def validate_fingerprint(