提交 4047a18a 编写于 作者: jia zhang's avatar jia zhang

ra-tls: Update README to reflect current implementation

Signed-off-by: jia zhang's avatarJia Zhang <zhang.jia@linux.alibaba.com>
上级 0ea84c18
...@@ -5,45 +5,24 @@ export EPID_SUBSCRIPTION_KEY=<hex string> ...@@ -5,45 +5,24 @@ export EPID_SUBSCRIPTION_KEY=<hex string>
export QUOTE_TYPE=<SGX_LINKABLE_SIGNATURE | SGX_UNLINKABLE_SIGNATURE> export QUOTE_TYPE=<SGX_LINKABLE_SIGNATURE | SGX_UNLINKABLE_SIGNATURE>
``` ```
# Build Stub Enclave # Build
``` shell ``` shell
cd "${path_to_inclavare_containers}/stub-enclave" cd $src/ra-tls
make make
sudo make install
``` ```
# Build Docker images # Run
## Prepare the materials
``` shell ``` shell
mkdir lib cd build/bin
cp /usr/lib/x86_64-linux-gnu/libsgx_urts.so lib ./ra-tls-server -s &
cp /usr/lib/x86_64-linux-gnu/libsgx_uae_service.so lib ./ra-tls-client
cp /usr/lib/x86_64-linux-gnu/libsgx_enclave_common.so.1 lib
cp /usr/lib/x86_64-linux-gnu/libprotobuf.so.10 lib
cp /lib/x86_64-linux-gnu/libseccomp.so.2 lib
``` ```
## Dockerfile # Trouble shooting
``` shell ## parse_response_header assertion
FROM ubuntu:18.04
RUN mkdir -p /run/rune/stub-enclave
WORKDIR /run/rune
COPY lib /lib
COPY liberpal-stub.so .
COPY Wolfssl_Enclave.signed.so stub-enclave
RUN ldconfig
``` ```
ra-tls-server: untrusted/ias-ra.c:153: parse_response_header: Assertion `sig_begin != ((void *)0)' failed.
``` shell ./run.sh: line 5: 49050 Aborted ./ra-tls-server -s
docker build -t ${stub-enclave-image} .
``` ```
# run stub-enclave images with rune This error is caused due to invalid SGX RA settings. Please configure SGX RA settings with valid values.
``` shell
docker run -it --rm --runtime=rune -e ENCLAVE_TYPE=intelSgx \
-e ENCLAVE_RUNTIME_PATH=/lib/liberpal-stub.so \
-e ENCLAVE_RUNTIME_ARGS=stub-enclave ${stub-enclave-image}
```
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册