From a4486efc5a5d9485add4baccb813821f68c902c5 Mon Sep 17 00:00:00 2001 From: matejcik Date: Thu, 26 Oct 2023 15:46:10 +0200 Subject: [PATCH] feat(python): allow devkit-signed firmwares in `trezorctl fw update` --- python/src/trezorlib/cli/firmware.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/python/src/trezorlib/cli/firmware.py b/python/src/trezorlib/cli/firmware.py index 9e2b15a24d..b4c47a97da 100644 --- a/python/src/trezorlib/cli/firmware.py +++ b/python/src/trezorlib/cli/firmware.py @@ -151,9 +151,13 @@ def validate_signatures( click.echo("Unsigned firmware looking OK.") except firmware.FirmwareIntegrityError as e: - click.echo(e) - click.echo("Firmware validation failed, aborting.") - sys.exit(4) + 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) def validate_fingerprint(