Skip to content

Commit

Permalink
update path before clone repo and fast create pccs config file
Browse files Browse the repository at this point in the history
  • Loading branch information
tquangtuyen committed May 4, 2024
1 parent 8b23bae commit a292f13
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions README_Docker_and_RA.md
Original file line number Diff line number Diff line change
Expand Up @@ -218,17 +218,13 @@ rm csr.pem
[pccs-readme]: https://github.com/intel/SGXDataCenterAttestationPrimitives/blob/master/QuoteGeneration/pccs/README.md
[pccs-cert-gen]: https://github.com/intel/SGXDataCenterAttestationPrimitives/tree/master/QuoteGeneration/pccs/container#2-generate-certificates-to-use-with-pccs

3. Install Intel lib & copy the config file

> **_NOTE:_** The library requires nodejs 18, but regardless if installation succeeds or not, we just need the `default.json` file it comes with.
3. Create the config file

```
apt install sgx-dcap-pccs
cd ~/.config/sgx-pccs
cp /opt/intel/sgx-dcap-pccs/config/default.json .
curl -s https://raw.githubusercontent.com/intel/SGXDataCenterAttestationPrimitives/main/QuoteGeneration/pccs/config/default.json > ~/.config/sgx-pccs/default.json
```

Make sure you've copied the `default.json` into the .config/sgx-pccs directory you created earlier. The `raiko` container will mount this as a volume. After copying the file, open it for editing and fill in the below listed parameters as recommended by [Intel's manual][pccs-cert-gen-config]:
The `raiko` container will mount this file as a volume. After create the file, open `~/.config/sgx-pccs/default.json` for editing and fill in the below listed parameters as recommended by [Intel's manual][pccs-cert-gen-config]:

- `ApiKey`: The PCCS uses this API key to request collaterals from Intel's Provisioning Certificate Service. User needs to subscribe first to obtain an API key. Use either the primary or secondary key you obtained from the previous step `Subscribing to Intel PCS Service`.

Expand Down Expand Up @@ -257,7 +253,7 @@ mkdir ~/.config/raiko/secrets
5. Now, clone raiko and check out the `taiko/alpha-7` branch and navigate to the `docker` folder. From here you can build the docker images that we will be using.

```
git clone -b taiko/alpha-7 https://github.com/taikoxyz/raiko.git
cd ~ && git clone -b taiko/alpha-7 https://github.com/taikoxyz/raiko.git
cd raiko/docker
docker compose build
```
Expand Down Expand Up @@ -301,7 +297,7 @@ You've now prepared your machine for running Raiko through Docker. Now, you need
1. Clone [taiko-mono](https://github.com/taikoxyz/taiko-mono/tree/main) and navigate to the scripts

```
git clone https://github.com/taikoxyz/taiko-mono.git
cd ~ && git clone https://github.com/taikoxyz/taiko-mono.git
cd taiko-mono/packages/protocol
```

Expand Down

0 comments on commit a292f13

Please sign in to comment.