我正在测试Yubico 5 NFC,一般来说,我们使用KeePassXC保存合理的信息。KeePassXC接受yubikeys但是只有一个..。有人知道是否有可能在一个kdbx文件中添加多个文件?
发布于 2021-03-29 14:40:54
在与KeePassXC开发团队交谈之后,很明显,在两个独立的Yubikey中拥有两个不同的种子是不可能的。您需要将相同的种子添加到另一个Yubikey中,以保存种子的副本。
What happens if I break my YubiKey? Can I create backup keys?
You should always make a copy of the HMAC secret that is stored on the YubiKey and keep it in a secure location. This can be an analog paper copy, but since the YubiKey personalization tool allows you to program a custom secret into the key, you may as well program a second key with the same secret
Can I register multiple YubiKeys with my KeePassXC database?
You can only use a single secret for encrypting the database. So you can use multiple YubiKeys, but they all have to be programmed with the same secret (see question above).关于如何在两个yubikeys的插槽2中设置相同的id的说明如下:https://support.yubico.com/hc/en-us/articles/360013779759-Using-Your-YubiKey-with-KeePass
请记住,在第二个键中,您必须复制和粘贴相同的种子。
完整的讨论如下:https://github.com/keepassxreboot/keepassxc/discussions/6344
发布于 2021-09-19 06:07:59
建议在YubiKeys之上使用强主密码&定期保存DB以生成新的挑战/响应对。远远不是完美,但比仅仅一个密码更好。以下方法(使用HMAC-SHA1进行挑战-响应)可以在Ubuntu上使用KeePassXC v2.6.2和2x YubiKey 5 NFC和固件v5.4.3:
$ sudo apt-get install yubikey-manager $ ykman otp info
Slot 1: programmed
Slot 2: empty$ base32
SECRETSEED<Enter>
CTRL+D
BASE32SECRETSEED
$注意,上面的方法向种子添加了一个CR。将SECRETSEED存储在安全的地方(最好不是数字的),以防丢失两个键
$ ykman otp chalresp -t 2
Enter a secret key: BASE32SECRETSEED
Program a challenge-response credential in slot 2? [y/N]: y$ ykman otp calculate 2
Enter a challenge (hex): deadbeef
Touch your YubiKey...
aabbccdd11223344556677889900aabbccdd1122数据库>数据库安全性>添加附加保护>添加YubiKey挑战-响应
参考文献:
https://stackoverflow.com/questions/66817721
复制相似问题