Clicking this shortcut will mark this step as "Completed," and if you complete the next Guided Path, this Guided Path will be completed automatically
Insert your YubiKey, if you have not done that yet.
If you see an “Unknown error occurred†on macOS, go to system preferences → Security & Privacy → Input Monitoring, and allow input monitoring for YubiKey Manager.
Click Applications → OTP
YubiKey Manager: OTP slot selection
Choose the slot to configure. The first slot is reserved in some keys, so select Configuration Slot 2.
YubiKey Manager: OTP credential type
Select Challenge-response credential type and click Next.
YubiKey Manager: Challenge-response secret key
Set your HMAC-SHA1 challenge-response parameters:
Secret key — press Generate to randomize this field. Make sure to copy and store the generated secret somewhere safe. If you ever lose your YubiKey, you will need that secret to access your database and to program the replacement YubiKey.
Require touch — this prevents rogue apps from talking to your YubiKey without your permission. When KeePassium requests your YubiKey, you will need to touch the “Y†button on the NFC key (or touch the sides of the YubiKey 5Ci key).
Press Finish programming the YubiKey.
As a final step, make sure that apps can talk to your YubiKey. Click Interfaces and make sure that OTP is checked for both USB and NFC interfaces. (Otherwise, KeePassium might show something like “YubiKey select applet failed with code 0x6A82â€.)
YubiKey Manager: Allow OTP via both interfaces
Using YubiKey with your database
Once your YubiKey is configured, you can add it as a component of the database master key, along with a password and key file (or instead of them).
Set up a new database
When creating a new database, tap the hardware key button and select YubiKey Slot 2:
How to configure a new database to use YubiKey
Set up an existing database
To make YubiKey a required master key component for your existing database:
Open the database with the current master key (password and/or key file)
Tap the Change Master Key button at the bottom of the screen:
Tap the hardware key button and select YubiKey Slot 2:
How to change the existing master key to include YubiKey
Tap Done to save changes.
Once prompted, insert or scan your YubiKey (touch it with the top side of your phone).
That’s it! Now the database can be decrypted only with your YubiKey.
Unlocking a database
To unlock a YubiKey-protected database, tap the hardware key button and select YubiKey Slot 2. If necessary, enter your password and/or choose the key file.
Using YubiKey with KeePassium for iOS
Once prompted, insert or scan your YubiKey (touch it with the top side of your phone). If all the master key components are correct, the database will open up.