To add a YubiKey as a factor to an existing KeePass database, simply do the following:
On iOS
- Unlock the existing database as normal
- Tap the Circle button in the top right corner
- Tap ‘Set Master Credentials’
- Here you can completely set any or all the 3 possible factors:
- Password
- Key File
- YubiKey
- When you are happy just tap ‘Set’ in the top right corner.
On MacOS
- Unlock the existing database as normal
- Click on the Database menu item at the top of your screen
- Click 'Change Master Credentials'
- Here you can completely set any or all the 3 possible factors:
- Password
- Key File
- YubiKey
- When you are happy just click ok.
It is important that you know your YubiKey secret just in case you lose the key. It won't be possible to recover from key loss without a backup key or the secret it was programmed with.