aboutsummaryrefslogtreecommitdiff
path: root/server/testdata/cmd/add-entry
diff options
context:
space:
mode:
Diffstat (limited to 'server/testdata/cmd/add-entry')
-rwxr-xr-xserver/testdata/cmd/add-entry4
1 files changed, 3 insertions, 1 deletions
diff --git a/server/testdata/cmd/add-entry b/server/testdata/cmd/add-entry
index d5b404d..0935614 100755
--- a/server/testdata/cmd/add-entry
+++ b/server/testdata/cmd/add-entry
@@ -4,6 +4,7 @@ set -eo pipefail
source config
algo=ecdsa
+signature_scheme=1027
key_path="../chain/rgdd-$algo.key"
cert_path="../chain/rgdd-$algo.pem"
name="foobar-1.2.3"
@@ -19,9 +20,10 @@ pushd ../entry >/dev/null
openssl dgst -sha256 -sign $key_path -out stitem/$name.sig stitem/$name
openssl base64 -A -in stitem/$name -out stitem/$name.b64
openssl base64 -A -in stitem/$name.sig -out stitem/$name.sig.b64
- json=$(printf '{"item":"%s","signature":"%s","certificate":"%s"}'\
+ json=$(printf '{"item":"%s","signature":"%s","signature_scheme":%s,"chain":["%s"]}'\
$(cat stitem/$name.b64)\
$(cat stitem/$name.sig.b64)\
+ $signature_scheme\
$(cat $cert_path |\
sed '1,1d;$ d' |\
xargs |\