diff options
author | Rasmus Dahlberg <rasmus.dahlberg@kau.se> | 2020-11-03 20:10:54 +0100 |
---|---|---|
committer | Rasmus Dahlberg <rasmus.dahlberg@kau.se> | 2020-11-03 20:10:54 +0100 |
commit | 80c77449756c102381278d7ebeeb7b448cd6a16a (patch) | |
tree | 4ba51a40d9daa58c5e7030cf991f075be78b1931 /server/testdata/entry/README.md | |
parent | 43ead4759139841d3000e2e283d411c5262d8736 (diff) |
removed obsolete test scripts
Diffstat (limited to 'server/testdata/entry/README.md')
-rw-r--r-- | server/testdata/entry/README.md | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/server/testdata/entry/README.md b/server/testdata/entry/README.md deleted file mode 100644 index 0d26ca3..0000000 --- a/server/testdata/entry/README.md +++ /dev/null @@ -1,21 +0,0 @@ -# Create `item` and `signature` for the add-entry endpoint - -## Create a serialized `checksum_v1` entry -The following creates a serialized `checksum_v1` StItem, such that the package -name is `foobar-0.0.1` and the checksum `SHA256(foobar-0.0.1)`. The result is -stored in the `stitem` directory as `foobar-0.0.1`. -``` -$ go run . --logtostderr --name foobar-0.0.1 --dir stitem -``` - -## Sign the generated file using an end-entity certificate -Let's use our ECDSA end-entity certificate using SHA256 as the hash function. -``` -$ openssl dgst -sha256 -sign "../chain/rgdd-ecdsa.key" -out stitem/foobar-0.0.1.sig stitem/foobar-0.0.1 -``` - -## Encode the resulting StItem and its signature as base-64 -``` -$ openssl base64 -A -in stitem/foobar-0.0.1 -out stitem/foobar-0.0.1.b64 -$ openssl base64 -A -in stitem/foobar-0.0.1.sig -out stitem/foobar-0.0.1.sig.b64 -``` |