trustcrypto / python-onlykey

The OnlyKey Python Command-Line Utility is a command line tool targeted towards more advanced users. This can be used for configuration and testing.
https://docs.crp.to/command-line.html
47 stars 22 forks source link

wipekey not working due to "Error invalid ECC slot" #48

Open as400l opened 3 years ago

as400l commented 3 years ago

In an attempt to wipe key there is an error thrown "Error invalid ECC slot". No matter whether I try to "onlykey-cli wipekey RSA1" or "onlykey-cli wipekey ECC1". Also there is no mention in the documentatation that wipekey only works in config mode.

For the future - it would be very nice to have a way of checking whether keyslot is occupied or not. In current version of the cli and app - there is no such possibility.

onlykey commented 3 years ago

Can you try again with onlykey-cli v1.2.6. This should be working now along with a new feature allowing to load ECC and RSA keys through onlykey-cli.

as400l commented 3 years ago

I tried and it seems to be working properly now. Although there is a difference in the output when removing RSA and ECC keys.

When removing RSA I get:

Successfully wiped RSA Private Key

When removing ECC I get no output at all.