Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions coserv/test-harness/query.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ set -o pipefail
set -eu

A=${A?must be set in the environment to one of rv or ta}
HOST=${HOST:-localhost}
FMT=${FMT:-cbor}

base64url_encode() {
if [ "$(uname)" == "Darwin" ]
Expand Down Expand Up @@ -64,7 +66,7 @@ elif [ "${A}" == "ta" ]; then
q=$(ta_query)
fi

curl https://localhost:11443/endorsement-distribution/v1/coserv/$q -s \
curl https://${HOST}:11443/endorsement-distribution/v1/coserv/$q -s \
--insecure \
--header 'Accept: application/coserv+cose; profile="tag:arm.com,2023:cca_platform#1.0.0"' \
--header "Accept: application/coserv+${FMT}; profile=\"tag:arm.com,2023:cca_platform#1.0.0\"" \
| cbor-edn cbor2diag
Loading