Intel SGX SDK Setup

Getting the Intel SDK running on your computer is sometimes tricky. Check out the wiki for tutorials.

Intel(R) Software Guard Extensions for Linux* OS

Ubuntu 20.04 LTS 64-bit Desktop

This documentation is a quick installation guide to run Intel(R) Software Guard Extensions on Ubuntu 20.04 LTS 64-bit Desktop with disabled Flexible Launch Control (FLC) support.

Prerequisites

To install the Intel® SGX PSW, first install the following tools

$ sudo apt-get install libssl-dev libcurl4-openssl-dev libprotobuf-dev

To install the Intel® SGX SDK, install the following tools

$ sudo apt-get install build-essential python-is-python3

Install Intel® SGX Driver Installation

Download the DCAP driver. You find the DCAP version in the driver_readme.txt file.

Set the protections to allow for the .bin file execution

$ chmod 777 sgx_linux_x64_driver_<version>.bin

Run the following command:

$ sudo./sgx_linux_x64_driver_<version>.bin

Reboot your system.

Intel® SGX Platform Software (PSW) Installation

Add the following repository to your sources

$ echo 'deb [arch=amd64] https://download.01.org/intel-sgx/sgx_repo/ubuntu focal main' | sudo tee /etc/apt/sources.list.d/intel-sgx.list

Add the key to the list of trusted keys used by the apt to authenticate packages:

$ wget https://download.01.org/intel-sgx/sgx_repo/ubuntu/intel-sgx-deb.key 
$ sudo apt-key add intel-sgx-deb.key

Update the apt and install the packages:

$ sudo apt-get update

Install launch service:

$ sudo apt-get install libsgx-launch libsgx-urts

Install EPID-based attestation service:

$ sudo apt-get install libsgx-epid

Install algorithm agnostic attestation service

$ sudo apt-get install libsgx-quote-ex

Install Intel® SGX SDK Installation

Set the protections to allow for the .bin file execution

$ chmod 777 sgx_linux_x64_sdk_<version>.bin

Install the SDK using the following command:

$ sudo./sgx_linux_x64_sdk_<version>.bin

Install the SDK in directory /opt/intel/sgxsdk.

Run the following command

source /opt/intel/sgxsdk/environment

Find further Documentation

Intel(R) SGX for Linux* OS project home page on 01.org Intel(R) SGX Programming Reference

Intel(R) Software Guard Extensions for Win10 x64

Windows 10 x64 version 20H2 (OS Build 19042.964)

Prerequisites

Update bios/uefi to the newest version. The new firmware can be found at the page of your manufactor or it can be updated through their distributed applications. To run with native Intel SGX support, enable SGX in your bios/uefi. Mostly found under security.

Install Intel® SGX

Download Intel SGX SDK for Windows v.2.12.1004.exe and Intel SGX PSW for Windows v.2.12.102.1.exe from here.

Last updated