From 123c444ffd7a2ad2af58b62caad3ec7ae451256e Mon Sep 17 00:00:00 2001 From: Rasmus Dahlberg Date: Wed, 13 Apr 2022 16:54:25 +0200 Subject: clean-up sigsum tool structure --- cmd/sigsum/test/ssh.sh | 53 -------------------------------------------------- 1 file changed, 53 deletions(-) delete mode 100755 cmd/sigsum/test/ssh.sh (limited to 'cmd/sigsum/test/ssh.sh') diff --git a/cmd/sigsum/test/ssh.sh b/cmd/sigsum/test/ssh.sh deleted file mode 100755 index 56cae70..0000000 --- a/cmd/sigsum/test/ssh.sh +++ /dev/null @@ -1,53 +0,0 @@ -#!/bin/bash - -set -eu -trap cleanup EXIT - -priv=keys/ssh -pub=keys/ssh.pub -domain_hint=_sigsum_v0.ssh.test.sigsum.org -msg=msg-$(date +%s) -num_msg=3 - -function cleanup() { - set +e - - rm -f sigsum - for i in $(seq 1 $num_msg); do - rm -f $msg-$i{,.trunnel,.sig} - done - - exit -} - -go build ../ - -files="" -for i in $(seq 1 $num_msg); do - echo $msg-$i > $msg-$i - if ! openssl dgst -binary $msg-$i | ssh-keygen \ - -Y sign \ - -O hashalg=sha256 \ - -f $priv \ - -n $(./sigsum namespace) > $msg-$i.sig ; then - echo "[FAIL] sign for $num_msg ssh message(s)" >&2 - exit 1 - fi - files=$(echo -n $files $msg-$i) -done - -echo "[PASS] sign for $num_msg ssh message(s)" >&2 - -if ! ./sigsum bundle -t ssh -k $pub -d $domain_hint $files; then - echo "[FAIL] bundle for $num_msg ssh message(s)" >&2 - exit 1 -fi - -echo "[PASS] bundle for $num_msg ssh message(s)" >&2 - -if ! ./sigsum verify -t ssh -k $pub $files; then - echo "[FAIL] verify for $num_msg ssh message(s)" >&2 - exit 1 -fi - -echo "[PASS] verify for $num_msg ssh message(s)" >&2 -- cgit v1.2.3