Skip to content

Commit

Permalink
Fix CTS demo scripts following the recent pyscitt CLI updates (#254)
Browse files Browse the repository at this point in the history
  • Loading branch information
andpiccione authored Dec 17, 2024
1 parent bfd6592 commit 6877a7e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 3 additions & 3 deletions demo/cts_poc/2a-claim-generator.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,23 +35,23 @@ echo -e "\nCreating and signing claim"
if [ "$SIGNING_METHOD" = "did" ]; then
echo "Using DID document for signing"
scitt sign \
--claims "$CLAIM_CONTENT_PATH" \
--statement "$CLAIM_CONTENT_PATH" \
--content-type "$CLAIM_CONTENT_TYPE" \
--key "$PRIVATE_KEY_PATH" \
--did-doc "$DID_DOC_PATH" \
--out "$COSE_CLAIMS_OUTPUT_PATH"
elif [ "$SIGNING_METHOD" = "cacert" ]; then
echo "Using local CA certificate for signing"
scitt sign \
--claims "$CLAIM_CONTENT_PATH" \
--statement "$CLAIM_CONTENT_PATH" \
--content-type "$CLAIM_CONTENT_TYPE" \
--key "$PRIVATE_KEY_PATH" \
--x5c "$CACERT_PATH" \
--out "$COSE_CLAIMS_OUTPUT_PATH"
elif [ "$SIGNING_METHOD" = "akv" ]; then
echo "Using AKV configuration for signing"
scitt sign \
--claims "$CLAIM_CONTENT_PATH" \
--statement "$CLAIM_CONTENT_PATH" \
--content-type "$CLAIM_CONTENT_TYPE" \
--akv-configuration "$AKV_CONFIG_PATH" \
--x5c "$CACERT_PATH" \
Expand Down
3 changes: 1 addition & 2 deletions demo/cts_poc/3-client-demo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ RECEIPT_PATH="$RECEIPT_FOLDER"/embedded.receipt.cose

# Submit signed claim
scitt submit "$COSE_CLAIMS_PATH" \
--receipt "$RECEIPT_PATH" \
--receipt-type embedded \
--transparent-statement "$RECEIPT_PATH" \
--url "$SCITT_URL" \
--development

Expand Down

0 comments on commit 6877a7e

Please sign in to comment.