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?
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?