sonic-buildimage/sonic-slave-buster
Sachin Naik 598ab99469
secureboot: Enable signing SONiC kernel (#10557)
Why I did it
To sign SONiC kernel image and allow secure boot based system to verify SONiC image before loading into the system.

How I did it
Pass following parameter to rules/config.user
Ex:
SONIC_ENABLE_SECUREBOOT_SIGNATURE := y
SIGNING_KEY := /path/to/key/private.key
SIGNING_CERT := /path/to/public/public.cert

How to verify it
Secure boot enabled system enrolled with right public key of the, image in the platform UEFI database will able to verify image before load.

Alternatively one can verify with offline sbsign tool as below.

export SBSIGN_KEY=/abc/bcd/xyz/
sbverify --cert $SBSIGN_KEY/public_cert.cert fsroot-platform-XYZ/boot/vmlinuz-5.10.0-8-2-amd64 mage

O/P:
Signature verification OK
2022-04-19 13:23:15 +08:00
..
Dockerfile.j2 secureboot: Enable signing SONiC kernel (#10557) 2022-04-19 13:23:15 +08:00
Dockerfile.user.j2 [arm] support compile sonic arm image on arm server (#7285) 2021-04-18 08:17:57 -07:00
no-check-valid-until [sonic-slave-buster]: build sonic-slave-buster docker 2020-04-16 10:23:20 +00:00
sonic-jenkins-id_rsa.pub [sonic-slave-buster]: build sonic-slave-buster docker 2020-04-16 10:23:20 +00:00