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

please provide informative error message for illegal MODHEX #453

Closed
fschlich opened this issue Sep 17, 2021 · 0 comments · Fixed by #454
Closed

please provide informative error message for illegal MODHEX #453

fschlich opened this issue Sep 17, 2021 · 0 comments · Fixed by #454

Comments

@fschlich
Copy link

  • YubiKey Manager (ykman) version: 4.0.0~a1
  • How was it installed?: Debian package
  • Operating system and version: Debian bullseye
  • YubiKey model and version: YubiKey 5 Nano
  • Bug description summary:

I wanted to program a yubiotp and supply my own public id, but didn't know what MODHEX is, so supplied an illegal value. The error message seems to point to a programming error. I would expect an error message that explains that the supplied value is illegal.

Steps to reproduce

ykman otp yubiotp --public-id vvvvvvvvvvvz --generate-private-id --generate-key 2
Error: substring not found

Expected result

ykman otp yubiotp --public-id vvvvvvvvvvvz --generate-private-id --generate-key 2
Error: not a valid MODHEX value (valid chars are c b d e f g h i j k l n r t u v): vvvvvvvvvvvz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

1 participant