Intel® Software Guard Extensions (Intel® SGX)
Discussion board focused on hardware-based isolation and memory encryption to provide extended code protection in solutions.

DCAP Error: No cache data for this platform

keson
Beginner
683 Views

bellow error threw when I try to set up DCAP as Intel® SGX DCAP Quick Install Guide describe

https://www.intel.com/content/www/us/en/developer/articles/guide/intel-software-guard-extensions-dat...

 

Error: No cache data for this platform.

 

details:

  1. Failed to retrieve PCK when I run PCKIDRetrievalTool
root@VM-179-80-ubuntu:/home/ubuntu# PCKIDRetrievalTool

Intel(R) Software Guard Extensions PCK Cert ID Retrieval Tool Version 1.14.100.3

Warning: platform manifest is not available or current platform is not multi-package platform.
Error: unexpected error happend during sending data to cache server.
pckid_retrieval.csv has been generated successfully, however the data couldn't be sent to cache server!

 

2. successfully get the rootcacrl:

curl -k -G "https://localhost:8081/sgx/certification/v3/rootcacrl"
...20101300a06082a8648ce3d0403023068311a301806035504030c11496e74656c205347403020348003045022100b7805acf592113584c45c8b0e11b2b8a9db462a215bbf8d4fd416539d7f5ab7502207ff56984c5199cf2b23d97d37b104ec0ebb5243674f4134........

logs:

2022-08-05 23:03:01.468 [info]: Client Request-ID : 4a7297182d8f4a6783b0caa207661a36
2022-08-05 23:03:01.476 [info]: 127.0.0.1 - - [05/Aug/2022:15:03:01 +0000] "GET /sgx/certification/v3/rootcacrl HTTP/1.1" 200 586 "-" "curl/7.68.0"

2022-08-05 23:03:14.537 [info]: Client Request-ID : f5e8261c0121421c96e464f16ce16459
2022-08-05 23:03:16.239 [info]: Request-ID is : 620a508e620240879492c8b9f8423c92
2022-08-05 23:03:16.239 [debug]: Request URL https://api.trustedservices.intel.com/sgx/certification/v3/pckcerts
2022-08-05 23:03:16.239 [error]: Intel PCS server returns error(404).
2022-08-05 23:03:16.239 [error]: Intel PCS server returns error. Error code : 404
2022-08-05 23:03:16.240 [error]: Error: No cache data for this platform.
at Proxy.getPckCertFromPCS (/opt/intel/sgx-dcap-pccs/services/logic/commonCacheLogic.js:92:11)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
at async ReqCachingMode.registerPlatforms (/opt/intel/sgx-dcap-pccs/services/caching_modes/cachingMode.js:205:7)
at async Proxy.registerPlatforms (/opt/intel/sgx-dcap-pccs/services/platformsRegService.js:107:3)
at async postPlatforms (/opt/intel/sgx-dcap-pccs/controllers/platformsController.js:40:5)
2022-08-05 23:03:16.241 [info]: 127.0.0.1 - - [05/Aug/2022:15:03:16 +0000] "POST /sgx/certification/v3/platforms HTTP/1.1" 404 32 "-" "-"

 

CPU:

keson_0-1659737093232.png

 

bios:

keson_1-1659737093116.png

 

 

os:

Ubuntu 20.04.4 LTS (Focal Fossa)

 

kernel:

Linux VM-179-80-ubuntu 5.19.0-051900-generic #202207312230 SMP PREEMPT_DYNAMIC Sun Jul 31 22:34:11 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

 

config:

vi /opt/intel/sgx-dcap-pccs/config/default.json

{
"HTTPS_PORT" : 8081,
"hosts" : "0.0.0.0",
"uri": "https://api.trustedservices.intel.com/sgx/certification/v3/",
"ApiKey" : "[my api key]",
"proxy" : "",
"RefreshSchedule": "0 0 1 * * *",
"UserTokenHash" : "[the token]",
"AdminTokenHash" : "[the token]",
"CachingFillMode" : "REQ",
"LogLevel" : "debug",
"DB_CONFIG" : "sqlite",
"sqlite" : {
"database" : "database",
"username" : "username",
"password" : "password",
"options" : {
"host": "localhost",
"dialect": "sqlite",
"pool": {
"max": 5,
"min": 0,
"acquire": 30000,
"idle": 10000
},
"define": {
"freezeTableName": true
},
"logging" : false,
"storage": "pckcache.db"
}
},
"mysql" : {
"database" : "pckcache",
"username" : "root",
"password" : "mypass",
"options" : {
"host": "localhost",
"dialect": "mysql",
"pool": {
"max": 5,
"min": 0,
"acquire": 30000,
"idle": 10000
},
"define": {
"freezeTableName": true
},
"logging" : false
}
}
}

 

 

 

Sincerely,

Keson

Labels (2)
0 Kudos
1 Reply
Reply