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

default management key does not work after reset #495

Open
rkiel-attenti opened this issue Jul 14, 2024 · 4 comments
Open

default management key does not work after reset #495

rkiel-attenti opened this issue Jul 14, 2024 · 4 comments

Comments

@rkiel-attenti
Copy link

rkiel-attenti commented Jul 14, 2024

Hello world
I have a new out-of-the-box Yubikey 5 NFC:

XXX:~/$ yubico-piv-tool -astatus
Version: 5.7.1
Serial Number: XYZXYZ
CHUID: No data available
CCC: No data available
PIN tries left: 3

I'm trying to change PIN retries number (or actually any other command) and it fail the authentication

XXX:~/$ yubico-piv-tool -apin-retries --pin-retries=10 --puk-retries=10
Failed authentication with the application.

The ykman behaves the same way:

XXX:~/$ ykman piv set-pin-retries 10 10
Enter PIN: <- 123456 was given
Enter a management key [blank to use default key]: <- blank was given
Usage: ykman piv set-pin-retries [OPTIONS] PIN-RETRIES PUK-RETRIES
Try 'ykman piv set-pin-retries -h' for help.

Error: Authentication with management key failed.

I have not changed the PIN/PUK or management key. With ykman, when I give the wrong PIN (not 123456) it says the PIN is wrong. I have tried to perform the reset and the result is the same.

What is wrong?

Thanks

@dainnilsson
Copy link
Member

Can you check the following:

  • What Operating system are you running?
  • What version of ykman are you running? (ykman --version)
  • What is the output of running ykman piv info?

@rkiel-attenti
Copy link
Author

OS: Ubuntu 20.04.6 LTS

ykman --version
YubiKey Manager (ykman) version: 3.1.1
Libraries:
libykpers 1.20.0
libusb 1.0.23

ykman piv info
PIV version: 5.7.1
PIN tries remaining: 3
CHUID: No data available.
CCC: No data available.

Thank you for your help

@dainnilsson
Copy link
Member

You're using a very old version of ykman that isn't compatible with the latest YubiKeys. The current version is 5.5.1 and is available here: https://github.com/Yubico/yubikey-manager

@rkiel-attenti
Copy link
Author

Thank you very much. I will try

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants