Skip to content
This repository was archived by the owner on Feb 20, 2025. It is now read-only.
This repository was archived by the owner on Feb 20, 2025. It is now read-only.

Cannot remove OTP locking code #177

@wagner-robert

Description

@wagner-robert

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions