diff --git a/README.md b/README.md index beb50d26..9925f281 100644 --- a/README.md +++ b/README.md @@ -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/ ``` diff --git a/scripts/keys.sh b/scripts/keys.sh index 3bcf52a2..1532c9fb 100755 --- a/scripts/keys.sh +++ b/scripts/keys.sh @@ -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 ==================================