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

[KNOWN ISSUE] FIPS YubiKey 5.7+: TryChangeManagementKey() fails due to incorrect default key algorithm (TDES instead of AES192) #160

Closed
DennisDyallo opened this issue Nov 8, 2024 · 0 comments · Fixed by #162
Assignees
Labels
bug Something isn't working known issue Used to indicate known issues by Yubico

Comments

@DennisDyallo
Copy link
Collaborator

DennisDyallo commented Nov 8, 2024

Problem

For a FIPS series Yubikey v5.7 and greater, the following line will currently not work and throw an exception with the status code 0x6A80.

pivSession.TryChangeManagementKey();

Reason

This is because the v5.7 and FIPS key require the management key to be of type AES192. The above code is a default overload which naively assumes the default key should be TripleDes (TDES).

Workaround

Change your code to this, explicitly stating which type of management key you want to use, and it will work.
pivSession.TryChangeManagementKey(PivTouchPolicy.Default, PivAlgorithm.Aes192);

We are aware of this issue and will issue a fix in the next release.

@DennisDyallo DennisDyallo added bug Something isn't working known issue Used to indicate known issues by Yubico labels Nov 8, 2024
@DennisDyallo DennisDyallo pinned this issue Nov 8, 2024
@DennisDyallo DennisDyallo self-assigned this Nov 8, 2024
@DennisDyallo DennisDyallo changed the title FIPS YubiKey 5.7+: TryChangeManagementKey() fails due to incorrect default key algorithm (TDES instead of AES192) [KNOWN ISSUE] FIPS YubiKey 5.7+: TryChangeManagementKey() fails due to incorrect default key algorithm (TDES instead of AES192) Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working known issue Used to indicate known issues by Yubico
1 participant