βοΈInstallation
wget https://download.01.org/intel-sgx/sgx-linux/2.22/distro/ubuntu22.04-server/sgx_linux_x64_driver_2.11.54c9c4c.bin
chmod +x sgx_linux_x64_driver_2.11.54c9c4c.bin
sudo ./sgx_linux_x64_driver_2.11.54c9c4c.binecho "deb https://download.01.org/intel-sgx/sgx_repo/ubuntu $(lsb_release -cs) main" | sudo tee -a /etc/apt/sources.list.d/intel-sgx.list >/dev/null
curl -sSL "https://download.01.org/intel-sgx/sgx_repo/ubuntu/intel-sgx-deb.key" | sudo -E apt-key add -
sudo apt update
sudo apt install sgx-aesm-service libsgx-aesm-launch-plugin libsgx-aesm-epid-pluginecho "deb https://download.01.org/intel-sgx/sgx_repo/ubuntu $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/intel-sgx.list >/dev/null
curl -sSL "https://download.01.org/intel-sgx/sgx_repo/ubuntu/intel-sgx-deb.key" | sudo -E apt-key add -
sudo apt update
sudo apt install libsgx-launch libsgx-urts libsgx-epid libsgx-quote-ex sgx-aesm-service libsgx-aesm-launch-plugin libsgx-aesm-epid-plugin libsgx-quote-ex libsgx-dcap-ql libsnappy1v5curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source "$HOME/.cargo/env"cargo install sgxs-toolssudo $(which sgx-detect)
Detecting SGX, this may take a minute...
β SGX instruction set
β CPU support
β CPU configuration
β Enclave attributes
β Enclave Page Cache
SGX features
β SGX2 β EXINFO β ENCLV β OVERSUB β KSS
Total EPC size: 92.2MiB
β Flexible launch control
β CPU support
β CPU configuration
β Able to launch production mode enclave
β SGX system software
β SGX kernel device (/dev/sgx_enclave)
β libsgx_enclave_common
β AESM service
β Able to launch enclaves
β Debug mode
β Production mode
β Production mode (Intel whitelisted)
You're all set to start running SGX programs!Last updated