Scripts for recovering Amazon certificates & private_key from FLASH

Document created by Theophile Leroy Employee on Sep 20, 2019Last modified by Adrian Puga Candelario on Nov 27, 2019
Version 2Show Document
  • View in full screen mode

The SLN-ALEXA-IOT kit comes pre-built to communicate with an NXP deployed AWS IoT account.

This means that the devices come ready to onboard in the same way a consumer would receive a final product.

   ➢The device certificate is stored at flash address 0x61C00000

   ➢The encrypted private key is stored at address 0x61C40000

 

If the flash is erased, it will result in these files also being erased and they aren’t generally available.

 

To Ensure the certificate and private key can be retrieved in the case of erasing the flash, read the flash contents at this address (a file is 256KB in size) and store them safeas a backup.

 

To do this find attached some scripts in order to retrieve them automaticly (voice_read_awsiot_cert_key.zip).

 

Before running the .bat script some configuration steps are required to adjust your envirnoment:

  • In the .bat file: PATH_TO_JLINK must be setup to your SEGGER  (JLink.exe) installation path
  • In the .jlink file: The path of your binary must be changed to a new path where you want to save the recovered binaries.
1 person found this helpful

Attachments

Outcomes