This is a sample application to demostrate the SGX enclave attestation with Intel® Trust Authority using trustauthority-client
Use the below command to install all the dependencies necessary to run this sample app.
chmod +x install.sh
sudo ./install.sh
Once the above install script is successful, use the below steps to build and run the app
make -C enclave
CGO_CFLAGS_ALLOW="-f.*" /usr/local/go/bin/go build
LD_LIBRARY_PATH=enclave/ ./sgxexample --config config.json
{
"trustauthority_url": "https://portal.trustauthority.intel.com",
"trustauthority_api_url": "https://api.trustauthority.intel.com",
"trustauthority_api_key": "<trustauthority attestation api key>"
}