occlum/demos/ra_tls/README.md
yuanwu 2810b8e4ce Enable the grpc ra-tls demo
Signed-off-by: yuanwu <yuan.wu@intel.com>
2022-03-09 15:53:45 +08:00

26 lines
948 B
Markdown

# gRPC Package With RA-TLS
#### Executing the demo in Occlum
The following command will download the gRPC source code and apply the ra-tls patches, then build gRPC source code and demo.
```
./prepare_and_build_package.sh
```
The following command will generate the client and server occlum images. It automatically parses the mr_enclave and mr_signer of the client, and write the value into dynamic_config.json. If you want to verify the other measurements of client, please modify the dynamic_config.json before run the script.
```
./build_occlum_instance.sh
```
Run the gRPC server & client in occlum.
```
./run.sh server &
./run.sh client
```
***Note:*** 1. The demo runs in the same machine by default. If you want to run server and client in different machines. Please modify the examples/cpp/ratls.
2. If you want to test in your local network with your own PCCS server, you need to modify the /etc/sgx_default_qcnl.conf