occlum / occlum

Occlum is a memory-safe, multi-process library OS for Intel SGX
https://occlum.io/
Other
1.37k stars 232 forks source link

Error: unsupported protocol (remote attestation demo) #99

Open lemonviv opened 4 years ago

lemonviv commented 4 years ago

Hi Occlum-team,

I tried to run the remote attestation demo using docker, but got the following error:

aesm_service[14]: [ADMIN]EPID Provisioning successful
[ERROR][/root/demos/remote_attestation/lib/src/ra_ias.cpp:214] Fail to connect server: Unsupported protocol
Fail to get quote or fetch report, erro code is 5020000!

It seems to be a problem caused by the curl_easy_perform command when contacting with IAS, where the https protocol is not supported. But the installed curl indeed supports it.

root@100f32bc78de:~/demos/remote_attestation# curl-config --protocols
DICT
FILE
FTP
FTPS
GOPHER
HTTP
HTTPS
IMAP
IMAPS
LDAP
LDAPS
POP3
POP3S
RTMP
RTSP
SMB
SMBS
SMTP
SMTPS
TELNET
TFTP

I wonder is there any configuration that is overlooked in the provided bash files? Any suggestions would be highly appreciated.

Thank you, Yuncheng

guzongmin commented 4 years ago

We do find the same issue in the current version Occlum. Will fix it soon, maybe this week.

lemonviv commented 4 years ago

Great, thank you.