steps to sign binary and encode the signed key to mcuboot

Hi,

I am using vscode and nCS on windows, kindly help me with below 3 queries:

1. How to generate a binary signing key, say "KEY_1"..?

2. How to sign a binary with "KEY_1" or generate a signed binary with "KEY_1" from vscode..?

3. How to inform mcuboot regarding generated "KEY_1" to validate binary..?

I came across some steps like on : https://devzone.nordicsemi.com/f/nordic-q-a/77077/how-to-specify-signing-the-key-with-mcuboot#:~:text=CONFIG_BOOT_SIGNATURE_KEY_FILE%3D%22c%3A%5C%5Ckey.pem%22

But i need the complete picture.

Thanks,

Parents Reply
  • Fails in ncs 2.2.0

    (Worked in ncs 2.0.0)

    C:/ncs_proj/samples_for_nrf_connect_sdk-main/bootloader_samples/keys_and_signatures/mcuboot_smp_custom_key/build/mcuboot/zephyr/misc/generated/extra_kconfig_options.conf:2: warning: malformed string literal in assignment to BOOT_SIGNATURE_KEY_FILE (defined at C:/ncs/v2.2.0/nrf/modules/mcuboot/boot/zephyr/Kconfig:58, C:/ncs/v2.2.0/bootloader/mcuboot/boot/zephyr/Kconfig:131, C:/ncs/v2.2.0/nrf/modules/mcuboot/Kconfig:3). Assignment ignored.

Children
Related