Secure Boot

mkosi signs systemd-boot and the UKI with our own key (mkosi.crt; the private
key is the SECUREBOOT_KEY secret, which the os workflow writes to mkosi.key)
and puts the keys on the ESP. systemd-boot enrolls them at first boot if the
firmware is in setup mode: in Proxmox, an EFI disk without pre-enrolled keys.
Hosts installed before this keep their unsigned systemd-boot (updates don't
replace it), so they boot as before, without Secure Boot.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Job79andClaude Opus 5.5 committed 2026-11-14 22:43:54 +01:00
1 parent f3dfbb4f78
commit 0569bce676
5 files changed
+43 -5

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
-----BEGIN CERTIFICATE-----
MIICzjCCAbagAwIBAgIUVszVwCQVaOBS3MyL9TUA4lMaeHowDQYJKoZIhvcNAQEL
BQAwITEfMB0GA1UEAwwWZ2l0LXJ1bm5lciBTZWN1cmUgQm9vdDAeFw0yNjExMTQy
MTE1MjhaFw0zNjExMTEyMTE1MjhaMCExHzAdBgNVBAMMFmdpdC1ydW5uZXIgU2Vj
dXJlIEJvb3QwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDO1KaKLK6e
phfFvGyceuWGkJvnehJ5634rhty4gsyJlFVZSdZvDTU5iU6okjwtnYShEgEH02jX
Xgj7Y76iBuetAFjx1ISAdJNxdPHHO7uazLidMQ2gaVsSXayTPgwNmKoJ2xMmkoyQ
SO1vqTymWlVGJptgFIOivUbFBhovxSqeAC2kFplK11/3mQxl1Oxd7Lrh9BwBZbqU
E9Rd2eQUo8g9JjBA9nR7ogxa4wyP1mpMyvmJ2NbcuMunpKQC66eW5RNH3ERgJi36
fPiuT/ou+gjpYZo1HW6c59nx9XFO6epCcDWRV2xfcB/iFaDIVuJafDWvyeB1RFD+
CguGyHI7VFSTAgMBAAEwDQYJKoZIhvcNAQELBQADggEBAI84Ucm8m45nRFPf6ffb
vlfamcO+HIhobyPmafwEGLv6HWjHC9I9XulmEOHz9PePEI2TX0K9I883IGvmoyEA
AMI1f9kskm2Xg7Xk/OLXmqHDGDbJFNaS8e79ImBqu9bBWe4rOa6naeH7JiVjTh5Y
2APyP+o+DKrXuCjcQtZc1PkuQPrElNmqKduhfL4acIPR0N7kJ58FwpuE9Zh8C0p1
NSb7x38Dxxwid4zWDbSuIeIi0FfCFHC8olvzfDQlNst5VQeE921KcK8YKREIgn0H
2GLtzpczUGq8u6Pen7R8qSjLZ0GlVXfMlW1EthoYnlP1n4oxg6xfPn2J5SyP2EGi
Iis=
-----END CERTIFICATE-----