apache / apache/teaclave

teaclave_sgx_tool issue

Open
#731 0 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
No language data
Stars
805
Forks
155
PR merge metrics
No merged PRs in 30d

Description

I have deploy the docker in my server. server OS is ubuntu 22.04. i have git clone the project from github master branch. then create docker by `docker run -it -v $(pwd):/teaclave -w /teaclave --device /dev/sgx_enclave --device /dev/sgx_provision --device /dev/sgx/enclave --device /dev/sgx/provision -v /var/run/aesmd:/var/run/aesmd -v /etc/localtime:/etc/localtime:ro -v /etc/timezone:/etc/timezone:ro -e SGX_AESM_ADDR=1 teaclave/teaclave-build-ubuntu-2004-sgx-2.17.1:0.2.0`.

Then i go to the docker, and run these commands.

```
bash -c ". /root/.cargo/env && \
. /opt/sgxsdk/environment && \
mkdir -p build && cd build && \
cmake -DTEST_MODE=ON .. && \
make -j"
```

Then i go to my server, and run "incubator-teaclave/docker$ sudo ./run-teaclave-services.sh". everything is okay.

![Image](https://github.com/user-attachments/assets/9a472067-ed69-4bfb-8823-9df4eb23e210)

Also run "/teaclave/release/dcap# ./teaclave_dcap_ref_as" in the docker.

Finally i run "./teaclave_sgx_tool attestation --url https://localhost:8080--algorithm sgx_ecdsa" in docker and my server. both were wrong. just "Error: ServiceError"

Here is the error info in teaclave_dcap_ref_as.

![Image](https://github.com/user-attachments/assets/5c5b73db-28c4-4a6e-a91d-dea9e9aabdc2)

I have tried many methods, but no change.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.