I have encrypted an external hard drive using LUKS2 on my machine running Fedora 34 using the cryptsetup command.
When I now plug in the hard drive and enter the passphrase, the drive is unlocked successfully, and I can access my files. Additionally, I'd like to be able to unlock the drive using my FIDO2 security key. I have added the key as an unlock option using this command:
sudo systemd-cryptenroll --fido2-device=auto /dev/sdc1 In the documentation for the /etc/crypttab file, I found out how to automatically unlock such a drive during boot.
Unfortunately, I did not find any documentation how to unlock such a drive manually using the FIDO2 key. When I try to unlock it using cryptsetup open /dev/sdc1 myLuks, I have to enter the passphrase. In the manual for cryptsetup I could not find a parameter similar to --fido2-device either.
Can someone explain how to unlock a LUKS2 encrypted drive manually using a FIDO2 key?
Thanks in advance