Nitrokey / pynitrokey

Python client for Nitrokey devices
Apache License 2.0
94 stars 28 forks source link

Factory Reset of Different Apps not Working #540

Open anotherbridge opened 1 month ago

anotherbridge commented 1 month ago

Description

When running the help of the subcommand nitropy nk3 factory-reset-app the following is returned:

Command line tool to interact with Nitrokey devices 0.4.47
Usage: nitropy nk3 factory-reset-app [OPTIONS]
                                     {fido|opcard|secrets|piv|webcrypt}

  Factory reset all functionality of an application

Options:
  -h, --help  Show this message and exit.

This suggests that it is possible to reset the following apps:

Yet, when running nitropy nk3 factory-reset-app <app>, the following is returned for all apps except of the opcard app:

Command line tool to interact with Nitrokey devices 0.4.47
Please touch the device to confirm the operation
Critical error:
Failed to factory reset the device: The application does not support factory reset through nitropy

Expected Behavior

According to the help I would expect the apps to be reset.

Additional Information