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

Cannot remove OTP locking code #177

Open
wagner-robert opened this issue Jul 30, 2021 · 0 comments
Open

Cannot remove OTP locking code #177

wagner-robert opened this issue Jul 30, 2021 · 0 comments

Comments

@wagner-robert
Copy link

Trying to program and remove a access-code. Tried several other examples from here: https://developers.yubico.com/yubikey-personalization/

------------First program the access-code on a slot (NOTE- No access-code on slot 1)
C:\Program Files (x86)\Yubico\bin>ykman otp settings -A 010203040506 2
Update the settings for slot 2? All existing settings will be overwritten. [y/N]: y
Updating settings for slot 2...

------------------Then try and remove it
C:\Program Files (x86)\Yubico\bin>ykpersonalize -2 -c=010203040506 -a00000000000000000000000000000000 -oaccess=000000000000
Firmware version 5.4.2 Touch level 1295 Program sequence 5
Invalid access code string: (null)
USB error: The operation completed successfully.

----------------See if it was successful
C:\Program Files (x86)\Yubico\bin>ykman otp swap
Swap the two slots of the YubiKey? [y/N]: y
Swapping slots...
Error: Failed to write to the YubiKey. Make sure the device does not have restricted access.

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