Document Resource: Secureboot
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 42/100
- Issue 类型
- 文档
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- linux, shell
调研方向
首先查看此 issue 中的 Secure Boot 命令和链接的 Gentoo 密钥注册指南,检查哪些步骤和软件包名称适用于 Void Linux。当 mdBook 文档包含一份清晰且经过验证的 Secure Boot 设置指南,并解释密钥注册顺序和签名步骤时,这项工作就完成了。
由索引模型根据 Issue 内容生成。
描述
I was interested in secureboot on void. One of the users on the Void Matrix group posted about it and shared how he set it up here. Not sure if pastebin autodeletes stuff so I will paste it below in full: I will make a doc PR for this after I finish relearning git so this is notes for myself or if someone else want to PR it as well.
# Secureboot guide for linux:
# Im using void but this should work on most distros. You will just have to replace stuff like xbps-install with apt for example.
0.1. Enter Root
sudo su
1. Install efitools sbsigntool
sudo xbps-install efitools efitools-efi
2.Create a GUID for owner identification
uuidgen --random > GUID.txt
3. Platform key
openssl req -newkey rsa:4096 -nodes -keyout PK.key -new -x509 -sha256 -days 3650 -subj "/CN=my Platform Key/" -out PK.crt
openssl x509 -outform DER -in PK.crt -out PK.cer
cert-to-efi-sig-list -g "$(< GUID.txt)" PK.crt PK.esl
sign-efi-sig-list -g "$(< GUID.txt)" -k PK.key -c PK.crt PK PK.esl PK.auth
3.1 Sign an empty file to allow removing Platform Key when in "User Mode"
sign-efi-sig-list -g "$(< GUID.txt)" -c PK.crt -k PK.key PK /dev/null rm_PK.auth
4. Key Exchange Key
openssl req -newkey rsa:4096 -nodes -keyout KEK.key -new -x509 -sha256 -days 3650 -subj "/CN=my Key Exchange Key/" -out KEK.crt
openssl x509 -outform DER -in KEK.crt -out KEK.cer
cert-to-efi-sig-list -g "$(< GUID.txt)" KEK.crt KEK.esl
sign-efi-sig-list -g "$(< GUID.txt)" -k PK.key -c PK.crt KEK KEK.esl KEK.auth
5. Signature Database key
openssl req -newkey rsa:4096 -nodes -keyout db.key -new -x509 -sha256 -days 3650 -subj "/CN=my Signature Database key/" -out db.crt
openssl x509 -outform DER -in db.crt -out db.cer
cert-to-efi-sig-list -g "$(< GUID.txt)" db.crt db.esl
sign-efi-sig-list -g "$(< GUID.txt)" -k KEK.key -c KEK.crt db db.esl db.auth
6. Signing Bootloader and Kernel. (I use grub)
sbsign --key db.key --cert db.crt --output /boot/vmlinuz(enter version here) /boot/vmlinuz(enter version here)
sbsign --key db.key --cert db.crt --output /boot/efi/EFI/BOOT/BOOTX64.EFI /boot/efi/EFI/BOOT/BOOTX64.EFI
7. Enroll your keys
cp /root/*.cer /root/*.esl /root/*.auth /boot/efi/
Follow this guide: https://wiki.gentoo.org/wiki/User:Sakaki/Sakaki%27s_EFI_Install_Guide/Configuring_Secure_Boot#Method_3:_Inserting_Keys_via_Keytool
Keys should be added in this order: db => KEK => PK
8. Enable SecureBoot and Enjoy!
- 主要语言
- CSS
- 星标
- 217
- 派生
- 212
- 平均合并
- 2 天 21 小时
- 30 天内合并 PR
- 1
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
void-linux/void-docs 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 72/100
void-linux/void-docs#849 · 2 条评论 ·
-
bug good first issue
难度 1/5 1 小时以内 新手友好度 75/100
void-linux/void-docs#595 · 1 条评论 ·
-
难度 1/5 1 小时以内 新手友好度 62/100
void-linux/void-docs#532 ·
-
难度 4/5 3-5 天 新手友好度 48/100
void-linux/void-docs#899 · 5 条评论 · 2 个 reaction ·
-
难度 4/5 3-5 天 新手友好度 45/100
void-linux/void-docs#897 · 5 个 reaction ·
查看 void-linux/void-docs 的全部 Issue
相似的 Issue
-
content
难度 2/5 1-3 小时 新手友好度 75/100
GDQuest/learn-gdscript#1395 ·
-
rules
难度 1/5 1 小时以内 新手友好度 90/100
-
HttpClient
难度 2/5 1-3 小时 新手友好度 75/100
symfony/symfony-docs#23092 ·
-
难度 1/5 1 小时以内 新手友好度 90/100
-
难度 1/5 1 小时以内 新手友好度 95/100
huggingface/sentence-transformers#4074 ·