Hi,
First up, I realise some may argue the value of encrypting a volume, then not require a user entered passphrase to decrypt it. My goal was to boot a device with an encrypted volume using a separate USB drive containing the keyfile.
However I cannot seem to get it to work in its most basic form. Installing 11.2 using a passphrase and keyfile worked as expected with entering the passphrase during boot. I then reset the user key to be based on just the keyfile (note this remains in /boot for now):
geli setkey -K /boot/encryption.key -P /dev/xyz
I am still prompted to enter a passphrase on boot - neither blank or the old passphrase continue to work.
As a sanity check, I can successfully change the passphrase (and also remove the use of key with):
geli setkey /dev/xyz
...(enter new passphrase)
If you remove the now redundant keyfile reference from loader.conf, you can successfully boot using just the passphrase.
I have also tried setting geom_eli_passphrase_prompt="NO" - this just removes the early prompt, but passphrase is requested later in boot.
Anyone know what I'm doing wrong?
Or is this some kind of limitation or "fullproof" design where a passphrase must be used to boot from GELI encrypted disk?
First up, I realise some may argue the value of encrypting a volume, then not require a user entered passphrase to decrypt it. My goal was to boot a device with an encrypted volume using a separate USB drive containing the keyfile.
However I cannot seem to get it to work in its most basic form. Installing 11.2 using a passphrase and keyfile worked as expected with entering the passphrase during boot. I then reset the user key to be based on just the keyfile (note this remains in /boot for now):
geli setkey -K /boot/encryption.key -P /dev/xyz
I am still prompted to enter a passphrase on boot - neither blank or the old passphrase continue to work.
As a sanity check, I can successfully change the passphrase (and also remove the use of key with):
geli setkey /dev/xyz
...(enter new passphrase)
If you remove the now redundant keyfile reference from loader.conf, you can successfully boot using just the passphrase.
I have also tried setting geom_eli_passphrase_prompt="NO" - this just removes the early prompt, but passphrase is requested later in boot.
Anyone know what I'm doing wrong?
