External signing method with sysbuild #64532
Replies: 3 comments 3 replies
|
I don't know what you mean by username and password prompts because there is no prompt when signing but the default signing script is https://github.com/zephyrproject-rtos/zephyr/blob/main/cmake/mcuboot.cmake which can be overridden by setting the |
|
It is a bit obfuscated because it's in a pytest harness, but generally producing extra images unsigned or signed by arbitrary keys is going to involve cmake calling zephyr/tests/boot/mcuboot_multiple_keys/pytest/test_multiple_keys.py Lines 80 to 93 in da9b7b9 The security model being used is one of custody, in which the developers would never be capable of producing a signed application image. Instead, developers are able to produce a bootloader that has two public keys -- one for development, the other the public half of the tightly-held production key -- and able to produce an app signed by the developer key, not by the production key. Units produced at factory would be produced with a bootloader that will only verify the production key. |
Uh oh!
There was an error while loading. Please reload this page.
Hi,
I am working on building and flashing the MCUBOOT+ application using sysbuild on nucleo_u575zi_q and nucleo_h743zi.
And, I am looking for a standard approach where we can sign the binaries externally by utilizing the sysbuild method.
Currently, I am able to sign the binaries locally utilizing the sysbuild approach, which invokes the imgtool program. But, facing challenges while signing the binaries externally (from standard corporate method). As during the (west) building of the binaries, we need to handle the user prompts for user name and password during the building itself, which is currently getting aborted and then failing.
From the documentation, I found out about the 'rimage' method. Would it be useful here? If so, how should I proceed further? https://docs.zephyrproject.org/latest/develop/west/sign.html#rimage
Question: How can we sign the binaries externally by utilizing sysbuild approach?
OS: Windows
zephyr version: 3.2.0
Links:
https://docs.zephyrproject.org/latest/build/sysbuild/index.html#sysbuild-targets
All reactions