We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a3fe7b3 commit aba9f19Copy full SHA for aba9f19
coserv/test-harness/query.sh
@@ -4,6 +4,8 @@ set -o pipefail
4
set -eu
5
6
A=${A?must be set in the environment to one of rv or ta}
7
+HOST=${HOST:-localhost}
8
+FMT=${FMT:-cbor}
9
10
base64url_encode() {
11
if [ "$(uname)" == "Darwin" ]
@@ -64,7 +66,7 @@ elif [ "${A}" == "ta" ]; then
64
66
q=$(ta_query)
65
67
fi
68
-curl https://localhost:11443/endorsement-distribution/v1/coserv/$q -s \
69
+curl https://${HOST}:11443/endorsement-distribution/v1/coserv/$q -s \
70
--insecure \
- --header 'Accept: application/coserv+cose; profile="tag:arm.com,2023:cca_platform#1.0.0"' \
71
+ --header "Accept: application/coserv+${FMT}; profile=\"tag:arm.com,2023:cca_platform#1.0.0\"" \
72
| cbor-edn cbor2diag
0 commit comments