intel / sgx-ra-sample

Other
178 stars 65 forks source link

sgx_ra_get_msg1: 00004012 #79

Closed chenzhijun45 closed 2 years ago

chenzhijun45 commented 2 years ago

The following error occurred in the running code:

root@tec-191:~/sgx-ra-sample# ./run-client -d -v
+++ using default public key

---- Msg0 Details ----------------------------------------------------------
Extended Epid Group ID: 00000000
----------------------------------------------------------------------------
sgx_ra_get_msg1: 00004012

Server Log:

Connection from 127.0.0.1
Waiting for msg0||msg1
protocol error reading msg0||msg1
error processing msg1
Waiting for a client to connect...

cpu info:

Intel(R) Xeon(R) Silver 4314 CPU @ 2.40GHz

aesmd service:

status: unrecognized service
root@tec-191:~# service aesmd status
● aesmd.service - Intel(R) Architectural Enclave Service Manager
     Loaded: loaded (/lib/systemd/system/aesmd.service; enabled; vendor preset: enabled)
     Active: active (running) since Wed 2022-10-19 10:25:50 CST; 3h 22min ago
   Main PID: 8348 (aesm_service)
      Tasks: 4 (limit: 613772)
     Memory: 2.7M
     CGroup: /system.slice/aesmd.service
             └─8348 /opt/intel/sgx-aesm-service/aesm/aesm_service

Oct 19 13:28:09 tec-191 aesm_service[8348]: [ADMIN]EPID Provisioning initiated
Oct 19 13:28:10 tec-191 aesm_service[8348]: The Request ID is 32b9f654eef442b6a57f1e9ccc569e6f
Oct 19 13:28:10 tec-191 aesm_service[8348]: The Request ID is 16b1b17478ce4ea7a9224ee769e81670
Oct 19 13:28:10 tec-191 aesm_service[8348]: [ADMIN]EPID Provisioning protocol error reported by Backend (6)
Oct 19 13:28:10 tec-191 aesm_service[8348]: [ADMIN]EPID Provisioning failed
Oct 19 13:39:36 tec-191 aesm_service[8348]: [ADMIN]EPID Provisioning initiated
Oct 19 13:39:37 tec-191 aesm_service[8348]: The Request ID is 44b3ba8d7e074841bccd0c64de435f99
Oct 19 13:39:37 tec-191 aesm_service[8348]: The Request ID is e8d02ee822304003b40601e4884c54ea
Oct 19 13:39:37 tec-191 aesm_service[8348]: [ADMIN]EPID Provisioning protocol error reported by Backend (6)
Oct 19 13:39:37 tec-191 aesm_service[8348]: [ADMIN]EPID Provisioning failed

How can I handle this problem please?

chenzhijun45 commented 2 years ago

Because the CPU does not support epid.