diff options
| author | Rasmus Dahlberg <rasmus.dahlberg@kau.se> | 2020-10-30 13:27:05 +0100 | 
|---|---|---|
| committer | Rasmus Dahlberg <rasmus.dahlberg@kau.se> | 2020-10-30 13:27:05 +0100 | 
| commit | b8a8e56d4a311f15060efcd455c444949b2d20b9 (patch) | |
| tree | 56b7239cad17fdeb0bb674c305b137bb8d6dcfaa /server/testdata/cmd | |
| parent | 43c8e9b1e44255ecc3d8a0077dc285739cfbb79d (diff) | |
started refactoring add-entry code path according to doc
Diffstat (limited to 'server/testdata/cmd')
| -rwxr-xr-x | server/testdata/cmd/add-entry | 4 | 
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 |\ | 
