/
script.sh
executable file
·45 lines (37 loc) · 1.45 KB
/
script.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
transmute scitt key generate \
--alg -35 \
--output private-key.cbor
transmute scitt key export \
--input private-key.cbor \
--output public-key.cbor
# transmute scitt key diagnose \
# --input public-key.cbor \
# --output artifact.manifest.cyclonedx.xml.issuer.public-key.cbor.md
transmute scitt statement issue \
--iss urn:example:123 \
--sub urn:example:456 \
--issuer-key private-key.cbor \
--statement artifact.manifest.cyclonedx.xml \
--signed-statement artifact.manifest.cyclonedx.xml.cbor
# transmute scitt statement diagnose \
# --input artifact.manifest.cyclonedx.xml.cbor \
# --output artifact.manifest.cyclonedx.xml.cbor.without-transparency.md
transmute scitt statement verify \
--issuer-key public-key.cbor \
--statement artifact.manifest.cyclonedx.xml \
--signed-statement artifact.manifest.cyclonedx.xml.cbor \
transmute scitt ledger receipt issue \
--iss urn:example:789 \
--sub urn:example:abc \
--issuer-key private-key.cbor \
--signed-statement artifact.manifest.cyclonedx.xml.cbor \
--transparent-statement artifact.manifest.cyclonedx.xml.cbor \
--ledger ledger.json
transmute scitt transparent statement verify \
--issuer-key public-key.cbor \
--transparency-service-key public-key.cbor \
--statement artifact.manifest.cyclonedx.xml \
--transparent-statement artifact.manifest.cyclonedx.xml.cbor
# transmute scitt statement diagnose \
# --input artifact.manifest.cyclonedx.xml.cbor \
# --output artifact.manifest.cyclonedx.xml.cbor.with-transparency.md