Intel® Software Guard Extensions (Intel® SGX)
Use hardware-based isolation and memory encryption to provide more code protection in your solutions.
1345 Discussions

Re: problem in running https://github.com/intel/sgx-ra-sample

nikp18
Beginner
598 Views

I am also getting the same error @k__balaganapathy  can you please tell where to configure the libsgx_uae_service.so path?

0 Kudos
1 Solution
JesusG_Intel
Moderator
535 Views

Hello nikp18,


You should not need to manually add the path to the SGX PSW libraries.

 

Try re-installing all the SGX PSW libs. The steps below assume you are using Ubuntu 20.04. If this is not the case, find the instructions for installing the PSW in SGX Installation Guide.

 

$ 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


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

 

  • After installation, confirm these locations:

$ 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

 

 

  • Configure the proxy, if needed, in /etc/aesmd.conf. Then stop and restart aesmd.

$ sudo systemctl stop aesmd

$ sudo systemctl start aesmd

 

Install the sgx-ra-sample specifying the path to your OpenSSL libs and the SGX SDK.

 

  • Install pre-requisites:

 

  $ sudo apt-get install build-essential ocaml ocamlbuild automake autoconf libtool wget python-is-python3 libssl-dev git cmake perl

 

 $ sudo apt-get install libcurl4-openssl-dev protobuf-compiler libprotobuf-dev debhelper cmake reprepro unzip

 

  •  Go into the sgx-ra-sample directory. The SSL and SDK paths reflect my system so edit the ./configure command line as appropriate for your system:

$ ./bootstrap

$./configure --with-openssldir=/usr/lib/ssl --with-sgxsdk=/home/pse/sgx/sgxsdk

$ make

 

 

$ wget https://certificates.trustedservices.intel.com/Intel_SGX_Attestation_RootCA.pem

 

  • Find your SPID, Primary Key, Secondary Key in the IAS Portal and enter them in the file sgx-ra-sample/settings

 

  • Open a terminal and run

$ ./run-server

 

  • Open a different terminal:

$ ./run-client


View solution in original post

3 Replies
JesusG_Intel
Moderator
536 Views

Hello nikp18,


You should not need to manually add the path to the SGX PSW libraries.

 

Try re-installing all the SGX PSW libs. The steps below assume you are using Ubuntu 20.04. If this is not the case, find the instructions for installing the PSW in SGX Installation Guide.

 

$ 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


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

 

  • After installation, confirm these locations:

$ 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

 

 

  • Configure the proxy, if needed, in /etc/aesmd.conf. Then stop and restart aesmd.

$ sudo systemctl stop aesmd

$ sudo systemctl start aesmd

 

Install the sgx-ra-sample specifying the path to your OpenSSL libs and the SGX SDK.

 

  • Install pre-requisites:

 

  $ sudo apt-get install build-essential ocaml ocamlbuild automake autoconf libtool wget python-is-python3 libssl-dev git cmake perl

 

 $ sudo apt-get install libcurl4-openssl-dev protobuf-compiler libprotobuf-dev debhelper cmake reprepro unzip

 

  •  Go into the sgx-ra-sample directory. The SSL and SDK paths reflect my system so edit the ./configure command line as appropriate for your system:

$ ./bootstrap

$./configure --with-openssldir=/usr/lib/ssl --with-sgxsdk=/home/pse/sgx/sgxsdk

$ make

 

 

$ wget https://certificates.trustedservices.intel.com/Intel_SGX_Attestation_RootCA.pem

 

  • Find your SPID, Primary Key, Secondary Key in the IAS Portal and enter them in the file sgx-ra-sample/settings

 

  • Open a terminal and run

$ ./run-server

 

  • Open a different terminal:

$ ./run-client


JesusG_Intel
Moderator
413 Views

Hell nikp18,


Do you still need help with this issue?


Regards,

Jesus G.

Intel Customer Support


JesusG_Intel
Moderator
339 Views

This thread has been marked as answered and Intel will no longer monitor this thread. If you want a response from Intel in a follow-up question, please open a new thread.


Reply