Article ID: 000090286 Content Type: Install & Setup Last Reviewed: 04/22/2022

Error: “This System Does Not Support Intel® SGX” When Running Sgx-Ra-Sample Client Application

Environment

System with SGX enabled in BIOS Ubuntu 20.04

BUILT IN - ARTICLE INTRO SECOND COMPONENT
Summary

Install all Intel® Software Guard Extensions (SGX) Platform Software (PSW) components to enable applications to detect Intel® SGX support.

Description
  1. Installed Intel® SGX Software Development Kit and Platform Software package for Linux
  2. Installed the sgx-ra-sample
  3. Ran the server: ./run-server
  4. Ran client: ./run-client
  5. Received error: This system does not support Intel® SGX
Resolution
  1. Access the SGX PSW libraries following one of two methods
$ 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 ; wget -qO - https://download.01.org/intel-sgx/sgx_repo/ubuntu/intel-sgx-deb.key | sudo apt-key add - ; sudo apt-get update
  1. Install all components of the SGX PSW:

$ sudo apt-get install libsgx-launch libsgx-urts libsgx-epid libsgx-quote-ex libsgx-uae-service

  1. Confirm these locations for libsgx-uae-service:

$ dpkg -L libsgx-uae-service
/.
/usr
/usr/lib
/usr/lib/x86_64-linux-gnu
/usr/lib/x86_64-linux-gnu/libsgx_uae_service.so.2.3.213.1
/usr/share
/usr/share/doc
/usr/share/doc/libsgx-uae-service
/usr/share/doc/libsgx-uae-service/changelog.Debian.gz
/usr/share/doc/libsgx-uae-service/copyright
/usr/lib/x86_64-linux-gnu/libsgx_uae_service.so
/usr/lib/x86_64-linux-gnu/libsgx_uae_service.so.2

  1. Configure the proxy, if needed, in /etc/aesmd.conf and start and stop the aesmd service
$ sudo systemctl stop aesmd
$ sudo systemctl start aesmd
  1. Make the sgx-ra-sample to capture the paths to the PSW libraries:
 $ make
  1. Open a terminal and run the server

$ ./run-server

  1. Open a different terminal and run the client:

$ ./run-client

Additional information

The instructions for installing the Intel® Software Guard Extensions (Intel® SGX) PSW are missing libsgx_uae_service.

Related Products

This article applies to 1 products

Show all