@@ -34,49 +34,52 @@ The cmcctl can run the following commands, specified via the first parameter or
3434
3535``` sh
3636# Start the EST server that supplies the certificates and metadata for the cmcd
37- ./ estserver -config cmc-data /est-server-conf.json
37+ estserver -config example-setup/configs/installed /est-server-conf.json
3838```
3939
4040#### Run the cmcd
4141
4242``` sh
43- # Build and run the cmcd
44- ./cmcd -config cmc-data/cmcd-conf.json
43+ # Run the cmcd
44+ cmcd -config example-setup/configs/installed/cmcd-conf.json
45+
46+ # NOTE: for setups that require root, e.g., to access the tpm, make sure the installed go binaries
47+ # are found:
48+ sudo env PATH=" $HOME /go/bin:$PATH " cmcd -config example-setup/configs/installed/cmcd-conf.json
4549```
4650
4751#### Generate and Verify Attestation Reports
4852
4953``` sh
5054# Run cmcctl to retrieve an attestation report (stored in current folder unless otherwise specified)
51- ./ cmcctl -mode generate
55+ cmcctl generate -config example-setup/configs/installed/cmcctl-conf.json
5256
5357# Run cmcctl to verify the attestation report (stored in current folder unless otherwise specified)
54- ./ cmcctl -mode verify -ca cmc-data/pki/ca.pem
58+ cmcctl verify -config example-setup/configs/installed/cmcctl-conf.json
5559```
5660
5761#### Establish Attested TLS Connections
5862
5963``` sh
6064
6165# Run an attested TLS server
62- ./ cmcctl -mode listen -addr 0.0.0.0:4443 -ca cmc-data/pki/ca.pem -mtls
66+ cmcctl listen -config example-setup/configs/installed/cmcctl-conf.json -addr " $( hostname --fqdn ) :4443 "
6367
6468# Run an attested TLS client estblishing a mutually attested TLS connection to the server
65- ./ cmcctl -mode dial -addr localhost:4443 -ca cmc-data/pki/ca.pem -mtls
69+ cmcctl dial -config example-setup/configs/installed/cmcctl-conf.json -addr " $( hostname --fqdn ) :4443 "
6670```
6771
6872#### Establish Attested HTTPS Connections
6973
7074``` sh
7175# Run two attested HTTPS servers
72- ./ cmcctl -config cmcctl-config .json -addr 0.0.0.0:8081 -mode serve
76+ cmcctl serve -config example-setup/configs/installed/ cmcctl-conf .json -addr " $( hostname --fqdn ) :8082 "
7377
7478# Perform multiple user-specified attested HTTPS requests to both servers. Each connection is
7579# attested, while multiple requests to the same server use the established attested TLS connections
76- ./cmcctl \
77- -config ../data/cmcctl-config.json \
78- -addr https://localhost:8081/post,https://localhost:8082/post \
79- -mode request \
80+ cmcctl request \
81+ -config example-setup/configs/installed/cmcctl-conf.json \
82+ -addr " https://$( hostname --fqdn) :8082" \
8083 -method POST \
8184 -data " hello from attested HTTPS client" \
8285 -header " Content-Type: text/plain"
0 commit comments