Skip to content

Commit

Permalink
Merge pull request #42 from LedgerHQ/install-ca-error-661E
Browse files Browse the repository at this point in the history
Describe 0x661E error when installing a custom certificate
  • Loading branch information
jibeee authored Jul 22, 2022
2 parents d60efd7 + 21edf70 commit 290acf0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ledgerctl.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,8 @@ def install_ca(get_client, name, public_key):
click.echo("A certificate is already installed on the device.")
elif e.sw == 0x6802: # INVALID_PARAMETER
click.echo("The provided certificate is invalid.")
elif e.sw == 0x661E:
click.echo("The device is not in recovery mode.")
else:
raise

Expand Down

0 comments on commit 290acf0

Please sign in to comment.