NetBurner 3.5.0
PDF Version |
|
Demonstrates the signed application update capability.
To use this you need to create a public/private key pair. It is VERY important that the private key is not stored on the device in order to be secure. The signing key needs to be different than all other certs and keys used on the device as a server, such as those for HTTPS.
From this public/private key pair, the public key needs to be stored in the application, and the private key needs to be stored in some other secure location. If the private key is lost, you will be unable to ever again update the device.
To create the public key and compile it into the application, from the command line:
This example includes a batch file named makekey.bat that executes the above steps.
Once the public key has been created, the following commands can be used from the command line to create the signed application and load it into the device:
When using NBEclipse:
compfile public.key codekey_array codekey_len codekey.cpp
.After NBEclipse has built your project: