From 4047a18aa69d43cf26b6f79248a8e9a2c12345b7 Mon Sep 17 00:00:00 2001 From: Jia Zhang Date: Wed, 9 Sep 2020 05:15:48 +0000 Subject: [PATCH] ra-tls: Update README to reflect current implementation Signed-off-by: Jia Zhang --- ra-tls/README.md | 43 +++++++++++-------------------------------- 1 file changed, 11 insertions(+), 32 deletions(-) diff --git a/ra-tls/README.md b/ra-tls/README.md index 323190a..9e761a9 100644 --- a/ra-tls/README.md +++ b/ra-tls/README.md @@ -5,45 +5,24 @@ export EPID_SUBSCRIPTION_KEY= export QUOTE_TYPE= ``` -# Build Stub Enclave +# Build ``` shell -cd "${path_to_inclavare_containers}/stub-enclave" +cd $src/ra-tls make -sudo make install ``` -# Build Docker images -## Prepare the materials +# Run ``` shell -mkdir lib -cp /usr/lib/x86_64-linux-gnu/libsgx_urts.so lib -cp /usr/lib/x86_64-linux-gnu/libsgx_uae_service.so lib -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 +cd build/bin +./ra-tls-server -s & +./ra-tls-client ``` -## Dockerfile -``` shell -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 +# Trouble shooting +## parse_response_header assertion ``` - -``` shell -docker build -t ${stub-enclave-image} . +ra-tls-server: untrusted/ias-ra.c:153: parse_response_header: Assertion `sig_begin != ((void *)0)' failed. +./run.sh: line 5: 49050 Aborted ./ra-tls-server -s ``` -# run stub-enclave images with rune -``` 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} -``` +This error is caused due to invalid SGX RA settings. Please configure SGX RA settings with valid values. -- GitLab