Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

regenerate breaks/stalls Nitrokey Storage communication #27

Open
daringer opened this issue Nov 6, 2023 · 0 comments
Open

regenerate breaks/stalls Nitrokey Storage communication #27

daringer opened this issue Nov 6, 2023 · 0 comments

Comments

@daringer
Copy link
Collaborator

daringer commented Nov 6, 2023

to reproduce:

  • insert a Nitrokey Storage
  • run gpg --card-status, this works
  • run ./hotp_verification regenerate 12345678 (the operation reports Operation success)
  • run gpg --card-status fails:
❯ gpg --card-status
gpg: OpenPGP card not available: General error

❯ gpg --card-status
gpg: selecting card failed: No such device
gpg: OpenPGP card not available: No such device

It looks like the regenerate command somehow leads to the smartcard failing afterwards, although a power-cycle restores it again. Furthermore on my local machine restarting pcscd also fixes the issue.

This seems not to be related to a recent change inside hotp_verification but moreover it is likely related to a recent gpg version. Ultimately, I would assume hotp_verification somehow leaves the interface in a "weird" state - so the best fix is likely done in this repo here, although a workaround shall be possible in the meantime.

@daringer daringer changed the title latest version breaks regenerate on Nitrokey Storage regenerate breaks/stalls Nitrokey Storage communication Nov 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant