Running PSA Attestation examples on Mbed OS
This repository contains an example demonstrating the compilation and use of PSA Attestation on Mbed OS.
Example contained within this repository is inject attestation key-pair, get attetstaion token size and attetstaion token.
- Install Mbed CLI
The following are the steps required to install the application:
* Clone the repository and deploy the Mbed OS project:
mbed import firstname.lastname@example.org:ARMmbed/mbed-os-example-attestation.git
* Change your current directory:
To compile the example program use
mbed compile while specifying the target platform and the compiler.
For example, in order to compile using the ARM GCC compiler and a K64F target platform use:
mbed compile -m K64F -t GCC_ARM.
Once the compilation is completed successfully a binary file will be created:
Program your board
- Connect your Mbed device to the computer over USB.
- Copy the binary file (
mbed-os-example-mbed-attestation.bin) to the Mbed device.
- Connect to the Mbed Device using a serial client application of your choice.
- Press the reset button on the Mbed device to run the program.
The expected output from a successful execution of the example program should be as follows:
Get attestation tGet attestation token: success!
If you have problems, you can review the documentation for suggestions on what could be wrong and how to fix it.
License and contributions
The software is provided under Apache-2.0 license. Contributions to this project are accepted under the same license. Please see contributing.md for more info.
This project contains code from other projects. The original license text is included in those source files. They must comply with our license guide.