occlum/demos/remote_attestation/azure_attestation/maa_attestation
2023-06-08 09:55:00 +08:00
..
azure_att [demos] Do cargo fmt for azure attestation 2023-06-08 09:55:00 +08:00
bom.yaml [demos] Refactor and update the Azure attestation demos 2022-08-02 14:38:35 +08:00
build.sh [demos] Refactor and update the Azure attestation demos 2022-08-02 14:38:35 +08:00
README.md [demos] Refactor and update the Azure attestation demos 2022-08-02 14:38:35 +08:00

Sample code for doing Microsoft Azure Attestation in Occlum

This demo is programming in RUST, based on the Azure provided REST APIs. It provides steps to do SGX quote generation and attestation.

  • Build
  1. Pull rust-sgx-sdk submodule which is the dependence of occlum dcap library.
# cd occlum
# git submodule update --init
  1. Do the build with the scrit.
# ./build.sh
  • Run
# cd occlum_instance
# occlum run /bin/azure_att

If successful, it prints the Azure attestation token.