From fcf4568189f30f8da3bc31a9e931d13f966291d4 Mon Sep 17 00:00:00 2001 From: "YiLin.Li" Date: Tue, 8 Sep 2020 18:04:47 +0000 Subject: [PATCH] Revert "ra-tls: Update README.md to keep consistent with 0.4.0" This reverts commit 2df0d0c8941f55f888c9e36de32d6f02a95ea96b. --- ra-tls/README.md | 102 +++++++++++++---------------------------------- 1 file changed, 28 insertions(+), 74 deletions(-) diff --git a/ra-tls/README.md b/ra-tls/README.md index d0ac4a1..323190a 100644 --- a/ra-tls/README.md +++ b/ra-tls/README.md @@ -1,95 +1,49 @@ -# Before you start -- Refer to [this guide](https://github.com/alibaba/inclavare-containers#rune) to build `rune` from scratch. -- Register a `SPID` and `Subscription Key` of [IAS](https://api.portal.trustedservices.intel.com/EPID-attestation). After the registration, Intel will respond with a SPID which is needed to communicate with IAS. - -# Run stub with Docker -## Configure SGX RA settings -```shell +# Configure SGX RA settings +``` shell export SPID= export EPID_SUBSCRIPTION_KEY= export QUOTE_TYPE= ``` -## Install dependency -```shell -yum install -y patch autoconf automake libtool +# Build Stub Enclave +``` shell +cd "${path_to_inclavare_containers}/stub-enclave" +make +sudo make install ``` -## Build liberpal-stub -```shell -cd "${path_to_inclavare_containers}/ra-tls" -make -cp pal/liberpal-stub.so /usr/lib +# Build Docker images +## Prepare the materials +``` 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 ``` -# Build stub container image -```shell -cd "${path_to_inclavare_containers}/ra-tls/stub-enclave" -cat >Dockerfile <