Add signature
Adds signature to the existing MCUboot format image.
Command name
add-signature
Inputs
This command requires two input files, where one is the
MCUboot formatted image
and the second is the signature.
Name | Type | Optional/Required | Description |
|---|---|---|---|
file | string | required | Path to the image with MCUboot metadata |
description | string | optional | Description for this field. |
Name | Type | Optional/Required | Description |
|---|---|---|---|
file | string | required | Binary file containing signature. |
algorithm | string | required | Signature algorithm. Available values: ECDSA-P256, RSA2048, RSA4096. |
description | string | optional | Description for this field. |
Outputs
Name | Type | Optional/Required | Description |
|---|---|---|---|
file | string | required | Path to the output file. |
format | string | required | Format of the output file. Available values: ihex, bin. |
description | string | optional | Description for this field. |
Example
{
"schema-version": 1.0,
"content": [
{
"name": "Add-signature command example",
"description": "Adds a signature to the MCUboot formatted image",
"enabled": true,
"commands": [
{
"command": "add-signature",
"inputs": [
{
"description": "Unsigned bootloader in MCUboot format",
"file": "./hexs/bootloader_meta.hex"
},
{
"description": "Signature returned by HSM",
"file": "./hexs/signature.bin",
"algorithm": "ECDSA-P256"
}
],
"outputs": [
{
"description": "Final image signed with HSM",
"format": "ihex",
"file": "./hexs/bootloader_signed.hex"
}
]
}
]
}
]
}