This article covers the two options for resetting the YubiHSM Auth application on your YubiKey.
Tip: The YubiHSM Auth application is only available in YubiKey firmware 5.4 or higher. Use Yubico Authenticator to check your YubiKey firmware version.
Warning: This will permanently delete any YubiHSM Auth credentials you have on the YubiKey.
Option 1 - Reset using YubiKey Manager CLI
- Download and install the latest YubiKey Manager CLI
- Insert the YubiKey into a USB port
- Open Command Prompt (Windows) or Terminal (macOS / Linux)
- Type
ykman hsmauth reset
and press Enter - When prompted, press Y and then Enter to confirm the reset
Note: If you receive an error about not being able to find the program ykman, you will need to use cd to navigate to the folder it is in before running the ykman command.
- For Windows, run
cd "C:\Program Files\Yubico\YubiKey Manager CLI"
- For macOS, run
cd /Applications/YubiKey\ Manager\ CLI.app/Contents/MacOS/
Option 2 - Reset using the YubiHSM SDK
- Download and install the YubiHSM SDK
- Insert the YubiKey into a USB port
- Open Command Prompt (Windows) or Terminal (macOS / Linux)
- Type
yubihsm-auth --action reset
and press Enter
Note: If you receive an error about not being able to find the program yubihsm-auth, you will need to use cd to navigate to the folder it is in before running the yubihsm-auth command.
- For Windows, run
cd "C:\Program Files\Yubico\YubiHSM Shell\bin"
- For macOS, run
cd /usr/local/bin