Skip to content

Commit 4912d48

Browse files
committed
add small section explaining why is recommended to use these prop names
1 parent 0e6fb64 commit 4912d48

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docs/guides/secure-boot.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,13 @@ The security keys can be added with:
5454
- `build.keys.sign_key` indicates the name of the custom signing key to use to sign a binary during the compile process.
5555
- `build.keys.encrypt_key` indicates the name of the custom encryption key to use to encrypt a binary during the compile
5656
process.
57+
58+
It's suggested to use the property names mentioned before, because they can be overridden respectively with
59+
`--keys-keychain`, `--sign-key` and ``--encrypt-key` Arduino CLI [compile flags](../commands/arduino-cli_compile.md).
60+
61+
For example, by using the following command, the sketch is compiled and the resulting binary is signed and encrypted
62+
with the specified keys located in `/home/user/Arduino/keys` directory:
63+
64+
```
65+
arduino-cli compile -b arduino:mbed_portenta:envie_m7:security=sien --keys-keychain /home/user/Arduino/keys --sign-key ecsdsa-p256-signing-key.pem --encrypt-key ecsdsa-p256-encrypt-key.pem /home/user/Arduino/MySketch
66+
```

0 commit comments

Comments
 (0)