在模擬模式中執行 sgx-ra-sample 的暫時修正
- 建立並運行 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-sample 在模擬模式中執行。這不是永久修復程式;未在模擬模式中執行時,將檔案復原為原始。
- 編輯 檔案 sgx_stub.c:
- 第 176 行:以libsgx_uae_service.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 是指 SGX_ERROR_MODE_INCOMPATIBLE飛地 32/64 位模式或 SIM/HW 模式與目前未信用執行時間系統 (uRTS) 的模式不相容時,所造成的問題。
如果在模擬 sgx-ra-sample ,則驗證失敗。
如果正在證明的 Intel® Software Guard Extensions (Intel® SGX) 飛地是在模擬模式中執行,遠端證明會失敗,因為該飛地沒有Intel SGX硬體保護。