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

Add support for management key derivation from PIN like YubiKey Manager #500

Open
ecerulm opened this issue Aug 6, 2024 · 0 comments
Open

Comments

@ecerulm
Copy link

ecerulm commented Aug 6, 2024

The PIV guide https://developers.yubico.com/PIV/Guides/Device_setup.html hints setting up the YubiKey using a management keyderived from PIN with

ykman piv change-management-key --generate --protect

But after doing that yubico-piv-tool will fail withFailed authentication with the application: Authentication error. in commands like:

yubico-piv-tool -s 9a -a generate -o public.pem

The culprit is explained at #153 (comment) where they explain the the management key derived from PIN is not supported by yubico-piv-tool.

Although ykman piv xxxx (the cli for Yubikey Manager) could be used as a replacement for yubico-piv-tool and it does already supports this management key derivation from PIN, the fact is that a lot of the documentation uses yubico-piv-tool so it would be good if yubico-piv-tool supported this.

If there is already a decision not to support this, it would least it if could detect that the "management key derivation from PIN" is activated on the Yubikey and give a more concrete error message like "management key protected by PIN use ykman instead of yubico-piv-tool"

Related ##153

@ecerulm ecerulm changed the title Add support for management key derivation Add support for management key derivation from PIN like YubiKey Manager Aug 7, 2024
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

1 participant