You are not logged in.

#1 2019-06-27 15:11:08

LEXUGE
Member
From: Zhejiang, China
Registered: 2019-06-27
Posts: 4
Website

Secure boot failed in "shim with key" method

Hi,
I'm using "shim with key" method which is introduced in wiki.
My setup is encrypted /boot with grub and basic linux package (not LTS or anything else).

After entering the password to decrypt the master key, I went into the grub. Then, it went to kernel. However, it stopped and said:

Bootloader has not verified loaded image. System is compromised. halting

I signed the /boot/vmlinuz-linux and esp/EFI/GRUB/grubx64.efi.
After a while of googling, someone said the grub should be patched.

By the way, I booted successfully by using the "shim with hash" method.

Thanks.

Last edited by LEXUGE (2019-06-27 15:30:25)

Offline

#2 2019-06-27 21:55:05

sabroad
Member
Registered: 2015-05-24
Posts: 242

Re: Secure boot failed in "shim with key" method

LEXUGE wrote:

By the way, I booted successfully by using the "shim with hash" method.

According to the wiki,

When run, shim tries to launch grubx64.efi. If MokList does not contain the hash of grubx64.efi or the key it is signed with, shim will launch MokManager (mmx64.efi).

Could it be that grubx64.efi has had the hash stored in MokList, causing it to launch the bootloader without launching MokManager to enroll your Machine Owner Key?

Do you recall actually enrolling your Machine Owner Key, or could it be still checking the hash?

In MokManager select Enroll key from disk, find MOK.cer and add it to MokList. When done select Continue boot and your boot loader will launch and it will be capable launching any binary signed with your Machine Owner Key.

Last edited by sabroad (2019-06-27 21:56:51)


--
saint_abroad

Offline

#3 2019-06-28 01:29:34

LEXUGE
Member
From: Zhejiang, China
Registered: 2019-06-27
Posts: 4
Website

Re: Secure boot failed in "shim with key" method

sabroad wrote:
LEXUGE wrote:

By the way, I booted successfully by using the "shim with hash" method.

According to the wiki,

When run, shim tries to launch grubx64.efi. If MokList does not contain the hash of grubx64.efi or the key it is signed with, shim will launch MokManager (mmx64.efi).

Could it be that grubx64.efi has had the hash stored in MokList, causing it to launch the bootloader without launching MokManager to enroll your Machine Owner Key?

Do you recall actually enrolling your Machine Owner Key, or could it be still checking the hash?

In MokManager select Enroll key from disk, find MOK.cer and add it to MokList. When done select Continue boot and your boot loader will launch and it will be capable launching any binary signed with your Machine Owner Key.

Hi, there, I reseted the MokList using MokUtil before enrolling MokKey. And I double checked the MokList after enrolling the key. It's just right.
The problem is in GRUB itself. Shim can't cooperate with unpatched(original) GRUB as it mentioned in Shim GitHub issue #172.

To solve that, I'm using my own key. It works perfectly.

Offline

Board footer

Powered by FluxBB