Thanks to visit codestin.com
Credit goes to github.com

Skip to content

sbellem/sgx-iot

 
 

Repository files navigation


***** Gateway Key Provisioning and Secure Signing ***** ***** using Intel® Software Guard Extensions *****


Prerequisites:

  1. Make sure you've installed the SGX software stack (driver, PSW and SDK) and tested the installation by running sample apps.

Following command will check whether the SGX driver was loaded:

$ sudo lsmod | grep isgx

The above command should display 'isgx'.

Following command will check whether the AESM background service is loaded and running:

$ sudo service aemsd status

If it's not running, please run it with:

$ sudo service aesmd start or $ sudo service aemsd restart

NOTE: If AESM service fails to run even after the above, then it means the SGX driver was not loaded. Please re-check whether SGX driver was loaded.

  1. Source environment for using SGX tools:

$ source /environment

For example, if you installed SGX SDK in your home directory, then the command would be:

$ source ~/sgxsdk/environment

  1. The sample uses OpenSSL libraries to encode the output files. Install libssl-dev:

$ sudo apt install libssl-dev

  1. Compile the demo

    If you have hardware support for Intel(R) SGX:

    (4a) make

    If you would rather use the simulator:

    (4b) make SGX_MODE=sim

  2. Run the pure-software simulation of the sample (after making it executable):

$ chmod +x run_demo_*.sh $ ./run_demo_openssl.sh

  1. Run the same flow, using an SGX enclave:

./run_demo_sgx.sh

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •