Skip to content

Commit

Permalink
docs: fix readme to match code
Browse files Browse the repository at this point in the history
Signed-off-by: Boris Glimcher <Boris.Glimcher@emc.com>
  • Loading branch information
glimchb committed Jun 13, 2024
1 parent db89f90 commit 895c0e7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
12 changes: 3 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -406,20 +406,14 @@ MAC Address: 02:42:0A:7F:7F:04 (Unknown)
Nmap done: 1 IP address (1 host up) scanned in 0.34 seconds
```

## Run HTTP server only
## Run HTTPs server only

```text
docker-compose up --build web
```

## Test HTTP server from agent
## Test HTTPs server from agent

```text
docker-compose run --rm -T agent curl --fail --key /private_key.pem --cert /my_cert.pem --cacert /opi.pem https://web:443/
```

OR

```text
docker run --network=sztp_opi --security-opt seccomp=unconfined -it --rm fedora:36 curl --fail https://web:443/
docker run --rm --user 0 --network sztp_opi -v sztp_client-certs:/certs docker.io/curlimages/curl:8.5.0 --fail-with-body --key /certs/third_private_key.pem --cert /certs/third_my_cert.pem --cacert /certs/opi.pem https://web:443/
```
4 changes: 2 additions & 2 deletions scripts/keys.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ docker-compose ps

# extract PEM files from the running docker image
docker-compose cp setup-cert:/certs/client/opi.pem /tmp/opi.pem
docker-compose cp setup-cert:/certs/client/my_cert.pem /tmp/opi_cert.pem
docker-compose cp setup-cert:/certs/client/private_key.pem /tmp/opi_private_key.pem
docker-compose cp setup-cert:/certs/client/third_my_cert.pem /tmp/opi_cert.pem
docker-compose cp setup-cert:/certs/client/third_private_key.pem /tmp/opi_private_key.pem

# you can scp them into DPU now...
echo ==================================
Expand Down

0 comments on commit 895c0e7

Please sign in to comment.