Re: "geli: Wrong key" with a simple passphrase. Doesn't handle the keyboard input

From: Fabian Keil <freebsd-listen_at_fabiankeil.de>
Date: Fri, 14 Nov 2014 18:23:39 +0100
Aurelien Martin <01aurelien_at_gmail.com> wrote:

> Is there people that can try to geli an external USB disk with a simple
> passphrase on CURRENT and tell me if the passphrase prompt shown the input,
> and if it's possible to attach it ?
> --------
> # uname -a
> FreeBSD  11.0-CURRENT FreeBSD 11.0-CURRENT #0 r271779: Fri Sep 19 01:18:53
> UTC 2014     root_at_grind.freebsd.org:/usr/obj/arm.armv6/usr/src/sys/RPI-
> B  arm
> 
> #kldstat
>  2    1 0xc2e49000 17000    geom_eli.ko
>  3    1 0xc2e60000 2a000    crypto.ko
> 
> 
> # sysctl kern.geom.eli.visible_passphrase=1
> kern.geom.eli.visible_passphrase: 0 -> 1
> 
> #### Nothing print in the prompt ####
> 
> # geli init da0
> Enter new passphrase:
> Reenter new passphrase:

The sysctl only applies to the kernel, geli(8) doesn't use it.

> #### Impossible to attach the device with a simple passphrase. Tried 20x
> ####
> geli attach da0
> Enter passphrase:
> geli: Wrong key for da0

"geli attach" works for me on 11-CURRENT amd64, maybe it's an arm issue.

Fabian

Received on Fri Nov 14 2014 - 16:23:48 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:54 UTC