docs: sign local builds with mkosi -f genkey
It replaces mkosi.crt for local tests, without openssl or a mkosi.local.conf. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
b978c189ae
commit
00daa97950
3 files changed
+3
-20
No files matched your search
@@ -35,27 +35,11 @@ itself up as at first boot.
|
||||
|
||||
## Development
|
||||
|
||||
Only CI has `mkosi.key`, so local builds sign with a test key:
|
||||
|
||||
```sh
|
||||
openssl req -new -x509 -newkey rsa:2048 -nodes -subj /CN=test \
|
||||
-keyout ~/test.key -out ~/test.crt
|
||||
mkosi -f genkey # This replaces mkosi.crt for local tests. Don't commit it.
|
||||
mkosi build
|
||||
```
|
||||
|
||||
`mkosi.local.conf`:
|
||||
|
||||
```ini
|
||||
[Validation]
|
||||
SecureBootKey=~/test.key
|
||||
SecureBootCertificate=~/test.crt
|
||||
SignExpectedPcrKey=~/test.key
|
||||
SignExpectedPcrCertificate=~/test.crt
|
||||
VerityKey=~/test.key
|
||||
VerityCertificate=~/test.crt
|
||||
```
|
||||
|
||||
Then run `mkosi build`.
|
||||
|
||||
`mkosi.output/` then holds the disk image (`agentos_<version>.raw`) and the UKI
|
||||
and /usr partitions that make up an update.
|
||||
|
||||
|
||||
Reference in new issue
Block a user