yubikey-personalization
yubikey-personalization copied to clipboard
Cannot remove OTP locking code
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.