From 7d2f3b29104b8f789525dafc2c5d422107037243 Mon Sep 17 00:00:00 2001 From: hustliyilin Date: Tue, 8 Sep 2020 17:22:22 +0800 Subject: [PATCH] ra-tls: Update README.md to keep consistent with 0.4.0 Signed-off-by: Yilin Li --- ra-tls/README.md | 102 ++++++++++++++++++++++++++++++++++------------- 1 file changed, 74 insertions(+), 28 deletions(-) diff --git a/ra-tls/README.md b/ra-tls/README.md index 323190a..d0ac4a1 100644 --- a/ra-tls/README.md +++ b/ra-tls/README.md @@ -1,49 +1,95 @@ -# Configure SGX RA settings -``` shell +# 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 export SPID= export EPID_SUBSCRIPTION_KEY= export QUOTE_TYPE= ``` -# Build Stub Enclave -``` shell -cd "${path_to_inclavare_containers}/stub-enclave" -make -sudo make install +## Install dependency +```shell +yum install -y patch autoconf automake libtool ``` -# 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 liberpal-stub +```shell +cd "${path_to_inclavare_containers}/ra-tls" +make +cp pal/liberpal-stub.so /usr/lib ``` -## Dockerfile -``` shell +# Build stub container image +```shell +cd "${path_to_inclavare_containers}/ra-tls/stub-enclave" +cat >Dockerfile <