I have a Volume that is encrypted with a GnuPG pass phrase encrypted key.
I can open it, using manual commands, like this:
gpg -d key.gpg | cryptsetup luksOpen /dev/sdb2 cryptvolume
This works fine.
Also, when I manually use the decrypt_gnupg script provided by cryptsetup, it works fine:
/lib/cryptsetup/scripts/decrypt_gnupg /etc/key.gpg | cryptsetup luksOpen /dev/sdb2 cryptvolume
However, when I enter everything in /etc/crypttab
, it asks me several times for the pass phrase but doesn't accept it and then aborts…
crypttab
entry:
cryptvolume UUID=bac99915-a0ec-4d57-8fa0-xxxxxxxxxxxx /etc/key.gpg luks,noearly,keyscript=decrypt_gnupg
Maybe someone has an idea what could be wrong in my setup?