Score:0

LUKS don't recognize my correct passphrase anymore right after enrolling a new generated MOK

in flag

I have a laptop with Ubuntu 20.04 with Linux Unified Key Setup used for encrypting a logical volume. I had to install a third-party kernel module and I followed the last point of the tutorial "MOK generation and signing process" here: https://wiki.ubuntu.com/UEFI/SecureBoot After reboot, I was asked to enter my LUSK password, but it did not worked anymore! I totally sure it is the correct one, because I booted a few minutes before. I tried to boot from a live USB with Ubuntu 21.10 and execute

echo -n 'my_right_password' | cryptsetup --verbose luksOpen  /dev/my_logical_volume

getting

Command failed with code -2 (no permission or bad passphrase).

I am totally sure that enrolling MOK must have something to do with this failure. Anyone has an idea if there is anything else I can do beside reinstalling Ubuntu from scratch?

Sebastian avatar
in flag
Usually luksOpen requires two arguments, the device to open and the name the mapper gives to it. You only seem to provide the device. Have you also tried unlocking it with `cryptsetup` directly without the piping? I don't see the purpose of that.
in flag
You are right, but I forgot the mapper name just in the post above and not when I was trying to decrypt the volume. I used the piping just to be sure that the keyboard layout was the correct one. Unfortunately, it does not even work without piping. I have not seen any evidence of corruption in the hexdumps, so in the meantime I believe it does not have to do with enrolling but somehow with the keyboard layout.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.