File tree 1 file changed +10
-0
lines changed
1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -54,3 +54,13 @@ The security keys can be added with:
54
54
- ` build.keys.sign_key ` indicates the name of the custom signing key to use to sign a binary during the compile process.
55
55
- ` build.keys.encrypt_key ` indicates the name of the custom encryption key to use to encrypt a binary during the compile
56
56
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
+ ```
You can’t perform that action at this time.
0 commit comments