Nitrokey / nitrokey-app

Nitrokey's Application (Win, Linux, Mac)
https://www.nitrokey.com/
287 stars 55 forks source link

OTP save/delete not working on linux with Storage #437

Open micressor opened 4 years ago

micressor commented 4 years ago

Expected behaviour

It is possible to save/delete TOTPs.

Current behaviour

TOTP's can currently not be saved/deleted under Linux nitrokey-app v1.4

Steps for reproduction

  1. nitrokey-app -df debug-file.txt --dl 4
  2. connect nitrokey storage
  3. Go to OTP tab
  4. try to save seed to TOTP slot 2 with a random seed
  5. Enter Admin-PIN
  6. See success message
  7. close nitrokey-app
  8. nitrokey-app -df debug-file-after-app-restart.txt --dl 4
  9. TOTP slot 2 is empty
  10. disconnect/reinsert device
  11. TOTP slot 2 is empty

Logs

Logs attached:

szszszsz commented 4 years ago

Hi! It looks like NK App is using old libnitrokey under hood, which handles the latest NK Storage firmware improperly in the result.

  1. Can you use AppImage or Snap and retest?
  2. Which Linux distribution are you using?
micressor commented 4 years ago

Successfully tested with AppImage v.1.4.0. Under Debian 10 I tested nitrokey-app-1.4.0-experimental.deb which is currently not working.

szszszsz commented 4 years ago

Thank you for retesting!