Lines Matching +full:test2 +full:. +full:good
1 # $OpenBSD: sshsig.sh,v 1.15 2023/10/12 03:51:08 djm Exp $
2 # Placed in the Public Domain.
6 DATA2=$OBJ/${DATANAME}.2
9 rm -f $OBJ/sshsig-*.sig $OBJ/wrong-key* $OBJ/sigca-key*
12 sig_principal="user-$$@example.com"
18 WRONG=$OBJ/wrong-key.pub
20 # Make a CA key.
24 CA_PUB=$OBJ/sigca-key.pub
41 SIGNKEYS="$SIGNKEYS ${t}-cert.pub"
46 keybase=`basename $t .pub`
47 privkey=${OBJ}/`basename $t -cert.pub`
48 sigfile=${OBJ}/sshsig-${keybase}.sig
49 sigfile_agent=${OBJ}/sshsig-agent-${keybase}.sig
50 pubkey=${OBJ}/${keybase}.pub
51 cert=${OBJ}/${keybase}-cert.pub
52 sigfile_cert=${OBJ}/sshsig-${keybase}-cert.sig
90 < $DATA | cut -d' ' -f1-2 > ${OBJ}/${keybase}-fromsig.pub || \
92 cut -d' ' -f1-2 ${OBJ}/${keybase}.pub > ${OBJ}/${keybase}-strip.pub
93 diff -r ${OBJ}/${keybase}-strip.pub ${OBJ}/${keybase}-fromsig.pub || \
104 # Wrong key trusted.
122 (printf "josef.k@example.com " ; cat $pubkey) > $OBJ/allowed_signers
170 # NB. assumes we're not running this test in the 1980s
195 # NB. assumes we're not running this test in the 1980s
249 printf "namespaces=\"test1,test2\" ";
255 # Check signing keys using ssh-agent.
257 ${SSHADD} -D >/dev/null 2>&1 # Remove all previously-loaded keys.
261 mv ${privkey} ${privkey}.tmp
279 mv ${privkey}.tmp ${privkey}
343 # Remaining tests are for certificates only.
371 # NB. assumes we're not running this test in the 1980s
378 trace "$tid: key type $t verify cert good CA"
388 trace "$tid: key type $t find-principals cert good CA"
395 trace "$tid: key type $t find-principals cert good wildcard CA"
396 (printf "*@example.com cert-authority " ;
406 trace "$tid: key type $t verify cert good wildcard CA"
432 (printf "josef.k@example.com cert-authority " ;
489 # NB. assumes we're not running this test in the 1980s