diff --git a/ra-tls/README.md b/ra-tls/README.md index d0ac4a1b1ca4ade1727196a741770c0db25861f8..323190a8d9bfbb5efad1c4d1978b35bd0cc9a224 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 <