Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Schoenen__Stefan
Beginner
103 Views

SampleCode RemoteAttestation

Hello everyone,

 

I have a Workstation where Intel SGX is enabled in hardware. On it I once installed Ubuntu 16.04 with kernel 4.10.0-103. Then I installed SGX 1.9, tested the RemoteAttestation sample codes (by executing the "app" file generated by the Makefile in sgxsdk/SampleCode/RemoteAttestation) and received the following error message:

Call sgx_get_extended_epid_group_id success.
MSG0 body generated -
4 bytes:
{
0x0, 0x0, 0x0, 0x0 
}
 
Sending msg0 to remote attestation service provider.
 
Sent MSG0 to remote attestation service.
 
Call sgx_create_enclave success.
Call enclave_init_ra success.
Error, call sgx_ra_get_msg1 fail [main].
Call enclave_ra_close success.
Enter a character before exit ...
 
I was told that ther might be a network error, but I don't know which one. My company does not use any kind of proxy.
 
Can anyone help me, please?
0 Kudos
3 Replies
you_w_
New Contributor III
103 Views

Hi: 

What is the make flag you use to build the demo? HW or SIM, The remote attestation only runs in Simulation mode. And the Demo need no network link. Because the demo attestation didn't really connect to IAS for attestation. The data in the demo  are fake data.

Kind Regard

you

Schoenen__Stefan
Beginner
103 Views

The first 4 lines of the Makefile are

SGX_SDK ?= /opt/intel/sgxsdk
SGX_MODE ?= HW
SGX_ARCH ?= x64
SGX_DEBUG ?= 1

So it should be HW.

If I change SGX_MODE ?= HW to SGX_MODE ?= SIM, I get the error message

./app: error while loading shared libraries: libsgx_urts_sim.so: cannot open shared object file: No such file or directory

 

Rodolfo_S_
New Contributor III
103 Views

Hi, Stefan. That error usually happens because you didn't run
source /opt/Intel/sgxsdk/environment
as instructed in the SDK installation process. Regards, Rodolfo
Reply