-
-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Errors while enrolling keys (chattr & PK permissions issues) #32
Comments
Hello! Thanks for the kind words, and the detailed description! While I don't have any immediate ideas, I wanted to ask if you also tried to reboot and load the UEFI settings screen, and check what you can do from there - maybe you can enroll keys from that UI? I found somewhere that the path on some Lenovos might be "Security > Secure Boot > Key Management". |
Wow... I did not think I could edit them there. I just thought it was informative... ugh, "Management"... think I should have taken a break. Worked like a charm, thank you! |
I'm happy that you found a solution! As for whether |
To be honest this is out of my area of experience (clearly, lol). What is odd is that I previously did this, on two separate occasions (a while back) with this same laptop without issues. This third time around something changed, perhaps a firmware update. Perhaps it's suitable to test if the files exist before Anyway, I leave it to your best judgement. I can't afford much additional feedback. Thanks again. |
Something that might be worth adding to the readme is a mention to the setup mode which allows you to enroll keys from userland and is part of the UEFI spec. The setup mode can usually be turned on in the BIOS by disabling the secure boot and removing the existing keys from the key manager. But it depends on the UEFI implementation written by the manufacturer, and from my tiny experience but also from what I've read about it on the internet, most of the time UEFI implementations are broken. In such cases, falling back to enrolling the keys manually from the BIOS is usually the only thing that works. |
Hehe it's also my own experience 😄 If you'd like to send a PR with a note about this, please do! I'll do add something otherwise when I get a chance. Thanks, it's a good idea! |
Well sorry but I don't feel like sending a PR right now. But at least if someone else end up reading this, they will be aware that the setup mode is a thing! |
I wouldn't mind creating a PR -- but to be honest, the README already mentions this... although not quite specific: by deleting the keys it enters setup mode. In my case, this was not the issue as I was already in setup mode. I can do this by either deleting the keys (enters setup mode automatically) -- or by a specific option to enter setup mode. I still have a feeling, from what I just encountered -- which was working fine over a year ago that I used this on the same device -- that maybe something changed with this |
You are right that it is implicitly mentioned, but whatever we can document that can help people to enroll if they get stuck, is a valuable addition. How does this look? 221384c Feel free to propose changes. Regardless of what we end up doing with |
Great addition regarding placing file in ESP! |
First of all, I want to mention that your dotfiles was a great source of learning for me a few years back, so thank you! I still check it once in a while to discover something new :)
I've used
arch-secure-boot
in the past without any issues. I recently needed to setup everything again, have followed the same process as before, indicated in your read me (setting bios password, clearing keys) -- but enrolling no longer works due to the following errors:The files do not exist until
sbkeysync
is executed.After digging around I was able to do the following to get the db/KEK enrolled (no chattr required), from wiki:
Though after running
sbkeysync --keystore /etc/secureboot/keys --verbose --pk
I get the following error:I then tried manually running these:
But the following error indicates that perhaps
chattr
is no longer necessary and perhaps problematic:Once I do reset the file permissions back with
chattr +i
I get the error:This last error, and enrolling the PK key, isn't related to your script... I have tried several things:
cert-to-efi-sig-list
andsign-efi-sig-list
as on the wiki...I think
chattr
is perhaps no longer needed.Any ideas why I cannot enroll PK? I would greatly appreciate any advice/guidance. I'm on a Thinkpad X1 Gen 9, and again had no issue before... but now I'm stuck and have spent several hours trying to figure this out.
Thank you in advance.
The text was updated successfully, but these errors were encountered: