Skip to content

Validate that your Intel SGX Setup is working correctly

Mats edited this page Mar 7, 2020 · 11 revisions

To check whether the SGX installation was successful, we can run an example enclave. Therefore we clone the linux-sgx git repository.


Change directory to the home folder.

  • cd ~

If git is not exisiting on your Ubuntu installation, you can install it with the following command:

  • sudo apt-get install git

Subsequently clone the linux-sgx repository from GitHub.

  • git clone https://github.com/intel/linux-sgx.git

Now we can navigate to an example application:

  • cd linux-sgx/SampleCode/LocalAttestation

With make we can compile the application automatically by runnning the following command. SGX_MODE=SIM will compile the application for usage in Simulation Mode.

Attention: The Simulation Mode requires at least an installed Intel SGX SDK. However, the Hardware Mode requires an installed Intel SGX PSW. To install SGX PSW, please follow the official Intel instructions: https://software.intel.com/en-us/articles/sgx-sdk-installation-guide

The readme file, which is also located in the folder, contains all possible modes for compiling the program.

  • make SGX_MODE=SIM

Next we navigate to the bin directory and run the application.

  • cd bin
  • ./app

Clone this wiki locally