13 lines
581 B
Plaintext
13 lines
581 B
Plaintext
To generate keys for use with MCUboot encryption, the following are needed:
|
|
- python
|
|
- cryptography package
|
|
>>pip install cryptography
|
|
- cbor package
|
|
>> pip install cbor
|
|
|
|
The key generator is provided within the Nordic SDK/bootloader/mcuboot/scripts/imgtool.py
|
|
Run the following to generate key:
|
|
>>python <SDK path>/booloader/mcuboot/scripts/imgtool.py keygen -t ecdsa-p256 -k <private key name>.pem
|
|
|
|
NOTE: in application, sysbuild.conf needs to be updated to contain path of generated keys:
|
|
SB_CONFIG_BOOT_SIGNATURE_KEY_FILE="C:/cyber/scope/sw/keys/cyber_pk.pem" |