Intel Confidential Computing
Discussion board focused on Intel Confidential Computing technologies and how they can protect data and AI security, privacy, and sovereignty.
1559 讨论

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

nikp18
初学者
2,521 次查看

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

0 项奖励
1 解答
JesusG_Intel
主持人
2,458 次查看

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


在原帖中查看解决方案

0 项奖励
3 回复数
JesusG_Intel
主持人
2,459 次查看

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


0 项奖励
JesusG_Intel
主持人
2,336 次查看

Hell nikp18,


Do you still need help with this issue?


Regards,

Jesus G.

Intel Customer Support


0 项奖励
JesusG_Intel
主持人
2,262 次查看

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.


0 项奖励
回复