Enabling YubiKey with Password Safe

Applicable Products


This guide describes how to configure your YubiKeys to protect your Password Safe database with Challenge-Response based on HMAC-SHA1.

Requirements

Configuring Your YubiKey For Password Safe

  1. Install the YubiKey Personalization Tool if you have not already done so.
  2. Start the YubiKey Personalization Tool.
  3. Click Settings.
  4. Ensure that Button at startup and API call are checked. All remaining default settings are acceptable. Click Save to save the settings.
  5. Click Challenge-Response then click HMAC-SHA1.
  6. Select the configuration slot that you want to program. This guide assumes that you want to use the second configuration slot, which is empty by default.
  7. Check Require user input and Variable input. NOTE: If you are using the same YubiKey for Windows login, do not select Require user input.
  8. Click Generate to generate your secret key. Copy this key and keep it in a secure location.
  9. Click Write Configuration. A screenshot of the expected result is shown below.
  10. If you want to make a backup YubiKey (we recommend that you always make a backup of your YubiKey whenever you can), insert another YubiKey and repeat steps 5 to 8 with the same Secret Key (instead of generating a new one, copy and paste it from your backup).

Installing & Configuring Password Safe for YubiKey

  1. Install Password Safe if you have not already done so. Run Password Safe.
  2. If you do not have an existing database, click New Database and follow the instructions on the screen.
  3. In the setup window, enter your combination (passcode) in the Safe Combination and Verify fields, click YubiKey, and then touch the button on your YubiKey.
  4. If you already have an existing database and want to enable YubiKey protection for it, open your database in Password Safe and click Manage then Change Safe Combination.
  5. Input your existing passcode in the Old Safe Combination and your desired passcode in the New Safe Combination and Confirmation fields. 
  6. Click the lower Yubikey button next to New Safe Combination and touch the button on your YubiKey. Click OK.
  7. Congratulations, you’ve successfully configured your YubiKeys to protect your Password Safe database with HMAC-SHA1! To test your YubiKey, lock your database and attempt to regain access to it. At the log in screen, enter in your passcode and then click YubiKey and touch the button on your YubiKey. 
  8. If you are able to gain access to your database, then everything has been configured correctly. There is no way to regain access to your data if you lose your YubiKey, so a backup is highly recommended. 

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.