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

Unable to run SGX LocalAttestation example in Simulator on Linux cloud instance (AWS)

Cipolla__Henry
Beginner
212 Views

Even though Amazon's instances don't support SGX, I am trying to get a simulation environment working to play with. The SampleEnclave example works fine but LocalAttestation example keeps returning 2002. This should work given everything is run in software, right? 

LocalAttestation$ make clean ; make SGX_MODE=SIM ; ./app

But the output I get is:

The project has been built in debug simulation mode.

Load Enclave Failure
Available Enclaves
Enclave1 - EnclaveID 0
Enclave2 - EnclaveID 0
Enclave3 - EnclaveID 0Enclave1_test_create_session Ecall failed: Error code is 2002

Hit a key....

Am I missing something obvious and silly?

0 Kudos
1 Reply
Cipolla__Henry
Beginner
212 Views

Adding some debugging information to the example, the error I'm getting is 0x3002 "The enclave is not authorized." Again, I would have thought this doesn't happen when you use the simulator. Is there a requirement I'm missing?

Reply