Skip to content

Commit 7173d86

Browse files
committed
Update readme
1 parent e8f683b commit 7173d86

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

README.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,14 @@ This requires `openssl` to be installed.
159159
./scripts/generate-cert.sh localhost 127.0.0.1
160160
```
161161

162-
3. Start a http server to try this out with, on 127.0.01:8000 `python3 -m http.server 8000`
162+
3. Start a http server to try this out with, on 127.0.01:8000
163+
164+
This requires `python3` to be installed.
165+
166+
```
167+
python3 -m http.server 8000
168+
```
169+
163170
4. Start a proxy-server:
164171

165172
```
@@ -197,6 +204,18 @@ curl 127.0.0.1:6000/README.md
197204

198205
Assuming you started the python http server in the directory of this repository, this should print the contents of this README.
199206

207+
Since we just wanted to make a single GET request here, we can make this process simpler but using the `attested-get` command:
208+
209+
```
210+
cargo run -- attested-get \
211+
--url-path README.md
212+
--tls-ca-certificate ca.crt \
213+
--allowed-remote-attestation-type none \
214+
localhost:7000
215+
```
216+
217+
This should also print the README file. This should work even if the proxy-client from step 5 is not running.
218+
200219
## CLI differences from `cvm-reverse-proxy`
201220

202221
This aims to have a similar command line interface to `cvm-reverse-proxy` but there are some differences:

0 commit comments

Comments
 (0)