시뮬레이션 모드에서 sgx-ra 샘플을 실행하기 위한 임시 수정
- 구축 및 sgx-ra-sample 구성 옵션을 사용한 시뮬레이션 모드의 클라이언트 --enable-sgx-simulation.
./configure --with-openssldir=/opt/openssl/1.1.0i --enable-sgx-simulation
make
./run-client
- 오류 발생: sgx_create_enclave: trusted_enclave_signed.so: 0000200e
다음 수정을 통해 sgx-ra-샘플을 시뮬레이션 모드에서 실행할 수 있습니다. 영구적인 수정이 없습니다. 시뮬레이션 모드에서 실행되지 않을 때 파일을 원래 파일로 되갑니다.
- 편집 파일 sgx_stub.c:
- 라인 176: libsgx_uae_service.so.so 로 libsgx_uae_service_sim 교체합니다.
- 라인 190: libsgx_urts.so 교체하고 libsgx_urts_sim.so
- 실행:
$ source /opt/intel/sgxsdk/environment
$ make clean
$ make
$./run-client
Error 0x200e 32/64비트 모드 또는 SIM/HW 모드가 현재 uRTS(Untrusted Runtime System) 모드와 양호하지 않은 경우 발생 하는 SGX_ERROR_MODE_INCOMPATIBLE의미입니다.
시뮬레이션 sgx-ra-sample 실행하면 테스트 실패합니다.
원격 테스트는 인클레이브에 하드웨어 보호 기능을 인텔® Software Guard Extensions 인텔® SGX 테스트할(인텔® SGX) 엔클레이브가 실행될 경우 인텔 SGX 실패합니다.