summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsrc/credential/test_credential_bi_and.sh9
-rwxr-xr-xsrc/credential/test_credential_bi_and2.sh9
-rwxr-xr-xsrc/credential/test_credential_bi_and3.sh12
-rwxr-xr-xsrc/credential/test_credential_bi_and4.sh7
-rwxr-xr-xsrc/credential/test_credential_bi_bw.sh7
-rwxr-xr-xsrc/credential/test_credential_bi_bw_link.sh7
-rwxr-xr-xsrc/credential/test_credential_bi_bw_link2.sh9
-rwxr-xr-xsrc/credential/test_credential_bi_fw.sh9
-rwxr-xr-xsrc/credential/test_credential_issue.sh7
-rwxr-xr-xsrc/credential/test_credential_own.sh24
-rwxr-xr-xsrc/credential/test_credential_verify.sh6
-rwxr-xr-xsrc/credential/test_credential_verify_and.sh8
-rwxr-xr-xsrc/credential/test_credential_verify_simple.sh6
13 files changed, 67 insertions, 53 deletions
diff --git a/src/credential/test_credential_bi_and.sh b/src/credential/test_credential_bi_and.sh
index a7ed3ce1a..d52fb5dbe 100755
--- a/src/credential/test_credential_bi_and.sh
+++ b/src/credential/test_credential_bi_and.sh
@@ -37,6 +37,7 @@ EKEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep e | awk '{print
37FKEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep f | awk '{print $3}') 37FKEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep f | awk '{print $3}')
38GKEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep g | awk '{print $3}') 38GKEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep g | awk '{print $3}')
39HKEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep h | awk '{print $3}') 39HKEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep h | awk '{print $3}')
40gnunet-identity -d
40 41
41# (1) (A.a) <- B.b 42# (1) (A.a) <- B.b
42# (2) (B.b) <- C.c AND G.g 43# (2) (B.b) <- C.c AND G.g
@@ -55,16 +56,16 @@ gnunet-credential --createIssuerSide --ego=g --attribute="g" --subject="$HKEY h"
55gnunet-namestore -D -z b 56gnunet-namestore -D -z b
56 57
57SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=c --attribute="c" --subject="$DKEY d" --ttl="2019-12-12 10:00:00"` 58SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=c --attribute="c" --subject="$DKEY d" --ttl="2019-12-12 10:00:00"`
58gnunet-credential --createSubjectSide --ego=d --import "$SIGNED" 59gnunet-credential --createSubjectSide --ego=d --import="$SIGNED"
59gnunet-namestore -D -z d 60gnunet-namestore -D -z d
60SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=d --attribute="d" --subject="$EKEY e" --ttl="2019-12-12 10:00:00"` 61SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=d --attribute="d" --subject="$EKEY e" --ttl="2019-12-12 10:00:00"`
61gnunet-credential --createSubjectSide --ego=e --import "$SIGNED" 62gnunet-credential --createSubjectSide --ego=e --import="$SIGNED"
62gnunet-namestore -D -z e 63gnunet-namestore -D -z e
63SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=e --attribute="e" --subject="$FKEY" --ttl="2019-12-12 10:00:00"` 64SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=e --attribute="e" --subject="$FKEY" --ttl="2019-12-12 10:00:00"`
64gnunet-credential --createSubjectSide --ego=f --import "$SIGNED" --private 65gnunet-credential --createSubjectSide --ego=f --import="$SIGNED" --private
65gnunet-namestore -D -z f 66gnunet-namestore -D -z f
66SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=h --attribute="h" --subject="$FKEY" --ttl="2019-12-12 10:00:00"` 67SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=h --attribute="h" --subject="$FKEY" --ttl="2019-12-12 10:00:00"`
67gnunet-credential --createSubjectSide --ego=f --import "$SIGNED" --private 68gnunet-credential --createSubjectSide --ego=f --import="$SIGNED" --private
68gnunet-namestore -D -z h 69gnunet-namestore -D -z h
69 70
70# Starting to resolve 71# Starting to resolve
diff --git a/src/credential/test_credential_bi_and2.sh b/src/credential/test_credential_bi_and2.sh
index 23b55111c..f076c1c5c 100755
--- a/src/credential/test_credential_bi_and2.sh
+++ b/src/credential/test_credential_bi_and2.sh
@@ -37,6 +37,7 @@ EKEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep e | awk '{print
37FKEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep f | awk '{print $3}') 37FKEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep f | awk '{print $3}')
38GKEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep g | awk '{print $3}') 38GKEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep g | awk '{print $3}')
39HKEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep h | awk '{print $3}') 39HKEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep h | awk '{print $3}')
40gnunet-identity -d
40 41
41# (1) (A.a) <- B.b 42# (1) (A.a) <- B.b
42# (2) (B.b) <- C.c AND G.g 43# (2) (B.b) <- C.c AND G.g
@@ -52,16 +53,16 @@ gnunet-credential --createIssuerSide --ego=b --attribute="b" --subject="$CKEY c,
52gnunet-namestore -D -z b 53gnunet-namestore -D -z b
53 54
54SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=c --attribute="c" --subject="$DKEY d" --ttl="2019-12-12 10:00:00"` 55SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=c --attribute="c" --subject="$DKEY d" --ttl="2019-12-12 10:00:00"`
55gnunet-credential --createSubjectSide --ego=d --import "$SIGNED" 56gnunet-credential --createSubjectSide --ego=d --import="$SIGNED"
56gnunet-namestore -D -z d 57gnunet-namestore -D -z d
57SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=d --attribute="d" --subject="$EKEY e" --ttl="2019-12-12 10:00:00"` 58SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=d --attribute="d" --subject="$EKEY e" --ttl="2019-12-12 10:00:00"`
58gnunet-credential --createSubjectSide --ego=e --import "$SIGNED" 59gnunet-credential --createSubjectSide --ego=e --import="$SIGNED"
59gnunet-namestore -D -z e 60gnunet-namestore -D -z e
60SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=e --attribute="e" --subject="$FKEY" --ttl="2019-12-12 10:00:00"` 61SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=e --attribute="e" --subject="$FKEY" --ttl="2019-12-12 10:00:00"`
61gnunet-credential --createSubjectSide --ego=f --import "$SIGNED" --private 62gnunet-credential --createSubjectSide --ego=f --import="$SIGNED" --private
62gnunet-namestore -D -z f 63gnunet-namestore -D -z f
63SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=g --attribute="g" --subject="$FKEY" --ttl="2019-12-12 10:00:00"` 64SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=g --attribute="g" --subject="$FKEY" --ttl="2019-12-12 10:00:00"`
64gnunet-credential --createSubjectSide --ego=f --import "$SIGNED" --private 65gnunet-credential --createSubjectSide --ego=f --import="$SIGNED" --private
65gnunet-namestore -D -z h 66gnunet-namestore -D -z h
66 67
67# Starting to resolve 68# Starting to resolve
diff --git a/src/credential/test_credential_bi_and3.sh b/src/credential/test_credential_bi_and3.sh
index e2f167622..80dddcc14 100755
--- a/src/credential/test_credential_bi_and3.sh
+++ b/src/credential/test_credential_bi_and3.sh
@@ -36,8 +36,8 @@ EKEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep e | awk '{print
36FKEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep f | awk '{print $3}') 36FKEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep f | awk '{print $3}')
37GKEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep g | awk '{print $3}') 37GKEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep g | awk '{print $3}')
38HKEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep h | awk '{print $3}') 38HKEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep h | awk '{print $3}')
39
40gnunet-identity -d 39gnunet-identity -d
40
41# (1) (A.a) <- B.b 41# (1) (A.a) <- B.b
42# (2) (B.b) <- C.c AND G.g 42# (2) (B.b) <- C.c AND G.g
43# (3) C.c <- (D.d) 43# (3) C.c <- (D.d)
@@ -53,18 +53,18 @@ gnunet-credential --createIssuerSide --ego=b --attribute="b" --subject="$CKEY c,
53gnunet-namestore -D -z b 53gnunet-namestore -D -z b
54 54
55SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=c --attribute="c" --subject="$DKEY d" --ttl="2019-12-12 10:00:00"` 55SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=c --attribute="c" --subject="$DKEY d" --ttl="2019-12-12 10:00:00"`
56gnunet-credential --createSubjectSide --ego=d --import "$SIGNED" 56gnunet-credential --createSubjectSide --ego=d --import="$SIGNED"
57gnunet-namestore -D -z d 57gnunet-namestore -D -z d
58SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=d --attribute="d" --subject="$EKEY e" --ttl="2019-12-12 10:00:00"` 58SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=d --attribute="d" --subject="$EKEY e" --ttl="2019-12-12 10:00:00"`
59gnunet-credential --createSubjectSide --ego=e --import "$SIGNED" 59gnunet-credential --createSubjectSide --ego=e --import="$SIGNED"
60gnunet-namestore -D -z e 60gnunet-namestore -D -z e
61SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=g --attribute="g" --subject="$HKEY h" --ttl="2019-12-12 10:00:00"` 61SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=g --attribute="g" --subject="$HKEY h" --ttl="2019-12-12 10:00:00"`
62gnunet-credential --createSubjectSide --ego=h --import "$SIGNED" 62gnunet-credential --createSubjectSide --ego=h --import="$SIGNED"
63gnunet-namestore -D -z h 63gnunet-namestore -D -z h
64SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=e --attribute="e" --subject="$FKEY" --ttl="2019-12-12 10:00:00"` 64SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=e --attribute="e" --subject="$FKEY" --ttl="2019-12-12 10:00:00"`
65gnunet-credential --createSubjectSide --ego=f --import "$SIGNED" --private 65gnunet-credential --createSubjectSide --ego=f --import="$SIGNED" --private
66SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=h --attribute="h" --subject="$FKEY" --ttl="2019-12-12 10:00:00"` 66SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=h --attribute="h" --subject="$FKEY" --ttl="2019-12-12 10:00:00"`
67gnunet-credential --createSubjectSide --ego=f --import "$SIGNED" --private 67gnunet-credential --createSubjectSide --ego=f --import="$SIGNED" --private
68gnunet-namestore -D -z f 68gnunet-namestore -D -z f
69 69
70# Starting to resolve 70# Starting to resolve
diff --git a/src/credential/test_credential_bi_and4.sh b/src/credential/test_credential_bi_and4.sh
index c4db5c82a..18731d5d1 100755
--- a/src/credential/test_credential_bi_and4.sh
+++ b/src/credential/test_credential_bi_and4.sh
@@ -37,6 +37,7 @@ EKEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep e | awk '{print
37FKEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep f | awk '{print $3}') 37FKEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep f | awk '{print $3}')
38GKEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep g | awk '{print $3}') 38GKEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep g | awk '{print $3}')
39HKEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep h | awk '{print $3}') 39HKEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep h | awk '{print $3}')
40gnunet-identity -d
40 41
41# (1) (A.a) <- B.b 42# (1) (A.a) <- B.b
42# (2) (B.b) <- C.c AND G.g 43# (2) (B.b) <- C.c AND G.g
@@ -50,15 +51,15 @@ gnunet-credential --createIssuerSide --ego=b --attribute="b" --subject="$CKEY c,
50gnunet-namestore -D -z b 51gnunet-namestore -D -z b
51 52
52SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=g --attribute="g" --subject="$FKEY" --ttl="2019-12-12 10:00:00"` 53SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=g --attribute="g" --subject="$FKEY" --ttl="2019-12-12 10:00:00"`
53gnunet-credential --createSubjectSide --ego=f --import "$SIGNED" --private 54gnunet-credential --createSubjectSide --ego=f --import="$SIGNED" --private
54SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=c --attribute="c" --subject="$FKEY" --ttl="2019-12-12 10:00:00"` 55SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=c --attribute="c" --subject="$FKEY" --ttl="2019-12-12 10:00:00"`
55gnunet-credential --createSubjectSide --ego=f --import "$SIGNED" --private 56gnunet-credential --createSubjectSide --ego=f --import="$SIGNED" --private
56gnunet-namestore -D -z f 57gnunet-namestore -D -z f
57 58
58# Starting to resolve 59# Starting to resolve
59echo "+++ Starting to Resolve +++" 60echo "+++ Starting to Resolve +++"
60 61
61DELS=`$DO_TIMEOUT gnunet-credential --collect --issuer=$AKEY --attribute="a" --ego=f --backward -c test_credential_lookup.conf | paste -d, -s` 62DELS=`$DO_TIMEOUT gnunet-credential --collect --issuer=$AKEY --attribute="a" --ego=f --backward -c test_credential_lookup.conf | paste -d, -s - -`
62echo $DELS 63echo $DELS
63echo gnunet-credential --verify --issuer=$AKEY --attribute="a" --subject=$FKEY --delegate=\'$DELS\' --backward -c test_credential_lookup.conf 64echo gnunet-credential --verify --issuer=$AKEY --attribute="a" --subject=$FKEY --delegate=\'$DELS\' --backward -c test_credential_lookup.conf
64gnunet-credential --verify --issuer=$AKEY --attribute="a" --subject=$FKEY --delegate="$DELS" --backward -c test_credential_lookup.conf 65gnunet-credential --verify --issuer=$AKEY --attribute="a" --subject=$FKEY --delegate="$DELS" --backward -c test_credential_lookup.conf
diff --git a/src/credential/test_credential_bi_bw.sh b/src/credential/test_credential_bi_bw.sh
index 3a2043db6..618fae95f 100755
--- a/src/credential/test_credential_bi_bw.sh
+++ b/src/credential/test_credential_bi_bw.sh
@@ -35,6 +35,7 @@ DKEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep d | awk '{print
35EKEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep e | awk '{print $3}') 35EKEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep e | awk '{print $3}')
36FKEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep f | awk '{print $3}') 36FKEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep f | awk '{print $3}')
37GKEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep g | awk '{print $3}') 37GKEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep g | awk '{print $3}')
38gnunet-identity -d
38 39
39# (1) (A.a) <- B.b 40# (1) (A.a) <- B.b
40# (2) (B.b) <- C.c 41# (2) (B.b) <- C.c
@@ -49,13 +50,13 @@ gnunet-credential --createIssuerSide --ego=b --attribute="b" --subject="$CKEY c"
49gnunet-namestore -D -z b 50gnunet-namestore -D -z b
50 51
51SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=c --attribute="c" --subject="$DKEY d" --ttl="2019-12-12 10:00:00"` 52SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=c --attribute="c" --subject="$DKEY d" --ttl="2019-12-12 10:00:00"`
52gnunet-credential --createSubjectSide --ego=d --import "$SIGNED" 53gnunet-credential --createSubjectSide --ego=d --import="$SIGNED"
53gnunet-namestore -D -z d 54gnunet-namestore -D -z d
54SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=d --attribute="d" --subject="$EKEY e" --ttl="2019-12-12 10:00:00"` 55SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=d --attribute="d" --subject="$EKEY e" --ttl="2019-12-12 10:00:00"`
55gnunet-credential --createSubjectSide --ego=e --import "$SIGNED" 56gnunet-credential --createSubjectSide --ego=e --import="$SIGNED"
56gnunet-namestore -D -z e 57gnunet-namestore -D -z e
57SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=e --attribute="e" --subject="$FKEY" --ttl="2019-12-12 10:00:00"` 58SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=e --attribute="e" --subject="$FKEY" --ttl="2019-12-12 10:00:00"`
58gnunet-credential --createSubjectSide --ego=f --import "$SIGNED" --private 59gnunet-credential --createSubjectSide --ego=f --import="$SIGNED" --private
59gnunet-namestore -D -z f 60gnunet-namestore -D -z f
60 61
61# Starting to resolve 62# Starting to resolve
diff --git a/src/credential/test_credential_bi_bw_link.sh b/src/credential/test_credential_bi_bw_link.sh
index 86b0e7418..f002c2141 100755
--- a/src/credential/test_credential_bi_bw_link.sh
+++ b/src/credential/test_credential_bi_bw_link.sh
@@ -35,6 +35,7 @@ DKEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep d | awk '{print
35EKEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep e | awk '{print $3}') 35EKEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep e | awk '{print $3}')
36FKEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep f | awk '{print $3}') 36FKEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep f | awk '{print $3}')
37GKEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep g | awk '{print $3}') 37GKEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep g | awk '{print $3}')
38gnunet-identity -d
38 39
39# (1) (A.a) <- B.b 40# (1) (A.a) <- B.b
40# (2) (B.b) <- G.g.c 41# (2) (B.b) <- G.g.c
@@ -52,13 +53,13 @@ gnunet-credential --createIssuerSide --ego=g --attribute="g" --subject="$CKEY" -
52gnunet-namestore -D -z b 53gnunet-namestore -D -z b
53 54
54SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=c --attribute="c" --subject="$DKEY d" --ttl="2019-12-12 10:00:00"` 55SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=c --attribute="c" --subject="$DKEY d" --ttl="2019-12-12 10:00:00"`
55gnunet-credential --createSubjectSide --ego=d --import "$SIGNED" 56gnunet-credential --createSubjectSide --ego=d --import="$SIGNED"
56gnunet-namestore -D -z d 57gnunet-namestore -D -z d
57SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=d --attribute="d" --subject="$EKEY e" --ttl="2019-12-12 10:00:00"` 58SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=d --attribute="d" --subject="$EKEY e" --ttl="2019-12-12 10:00:00"`
58gnunet-credential --createSubjectSide --ego=e --import "$SIGNED" 59gnunet-credential --createSubjectSide --ego=e --import="$SIGNED"
59gnunet-namestore -D -z e 60gnunet-namestore -D -z e
60SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=e --attribute="e" --subject="$FKEY" --ttl="2019-12-12 10:00:00"` 61SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=e --attribute="e" --subject="$FKEY" --ttl="2019-12-12 10:00:00"`
61gnunet-credential --createSubjectSide --ego=f --import "$SIGNED" --private 62gnunet-credential --createSubjectSide --ego=f --import="$SIGNED" --private
62gnunet-namestore -D -z f 63gnunet-namestore -D -z f
63 64
64# Starting to resolve 65# Starting to resolve
diff --git a/src/credential/test_credential_bi_bw_link2.sh b/src/credential/test_credential_bi_bw_link2.sh
index ccb71b880..f6055a7bb 100755
--- a/src/credential/test_credential_bi_bw_link2.sh
+++ b/src/credential/test_credential_bi_bw_link2.sh
@@ -35,6 +35,7 @@ DKEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep d | awk '{print
35EKEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep e | awk '{print $3}') 35EKEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep e | awk '{print $3}')
36FKEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep f | awk '{print $3}') 36FKEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep f | awk '{print $3}')
37GKEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep g | awk '{print $3}') 37GKEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep g | awk '{print $3}')
38gnunet-identity -d
38 39
39# (1) (A.a) <- B.b 40# (1) (A.a) <- B.b
40# (2) (B.b) <- G.g.c 41# (2) (B.b) <- G.g.c
@@ -50,16 +51,16 @@ gnunet-credential --createIssuerSide --ego=b --attribute="b" --subject="$GKEY g.
50gnunet-namestore -D -z b 51gnunet-namestore -D -z b
51 52
52SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=g --attribute="g" --subject="$CKEY" --ttl="2019-12-12 10:00:00"` 53SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=g --attribute="g" --subject="$CKEY" --ttl="2019-12-12 10:00:00"`
53gnunet-credential --createSubjectSide --ego=c --import "$SIGNED" 54gnunet-credential --createSubjectSide --ego=c --import="$SIGNED"
54gnunet-namestore -D -z c 55gnunet-namestore -D -z c
55SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=c --attribute="c" --subject="$DKEY d" --ttl="2019-12-12 10:00:00"` 56SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=c --attribute="c" --subject="$DKEY d" --ttl="2019-12-12 10:00:00"`
56gnunet-credential --createSubjectSide --ego=d --import "$SIGNED" 57gnunet-credential --createSubjectSide --ego=d --import="$SIGNED"
57gnunet-namestore -D -z d 58gnunet-namestore -D -z d
58SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=d --attribute="d" --subject="$EKEY e" --ttl="2019-12-12 10:00:00"` 59SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=d --attribute="d" --subject="$EKEY e" --ttl="2019-12-12 10:00:00"`
59gnunet-credential --createSubjectSide --ego=e --import "$SIGNED" 60gnunet-credential --createSubjectSide --ego=e --import="$SIGNED"
60gnunet-namestore -D -z e 61gnunet-namestore -D -z e
61SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=e --attribute="e" --subject="$FKEY" --ttl="2019-12-12 10:00:00"` 62SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=e --attribute="e" --subject="$FKEY" --ttl="2019-12-12 10:00:00"`
62gnunet-credential --createSubjectSide --ego=f --import "$SIGNED" --private 63gnunet-credential --createSubjectSide --ego=f --import="$SIGNED" --private
63gnunet-namestore -D -z f 64gnunet-namestore -D -z f
64 65
65# Starting to resolve 66# Starting to resolve
diff --git a/src/credential/test_credential_bi_fw.sh b/src/credential/test_credential_bi_fw.sh
index 9c8f768c5..7cd5e5c52 100755
--- a/src/credential/test_credential_bi_fw.sh
+++ b/src/credential/test_credential_bi_fw.sh
@@ -35,6 +35,7 @@ DKEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep d | awk '{print
35EKEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep e | awk '{print $3}') 35EKEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep e | awk '{print $3}')
36FKEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep f | awk '{print $3}') 36FKEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep f | awk '{print $3}')
37GKEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep g | awk '{print $3}') 37GKEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep g | awk '{print $3}')
38gnunet-identity -d
38 39
39# (1) (A.a) <- B.b 40# (1) (A.a) <- B.b
40# (2) (B.b) <- C.c 41# (2) (B.b) <- C.c
@@ -50,16 +51,16 @@ gnunet-credential --createIssuerSide --ego=b --attribute="b" --subject="$CKEY c"
50gnunet-namestore -D -z b 51gnunet-namestore -D -z b
51 52
52SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=c --attribute="c" --subject="$DKEY d" --ttl="2019-12-12 10:00:00"` 53SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=c --attribute="c" --subject="$DKEY d" --ttl="2019-12-12 10:00:00"`
53gnunet-credential --createSubjectSide --ego=d --import "$SIGNED" 54gnunet-credential --createSubjectSide --ego=d --import="$SIGNED"
54gnunet-namestore -D -z d 55gnunet-namestore -D -z d
55SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=d --attribute="d" --subject="$EKEY e" --ttl="2019-12-12 10:00:00"` 56SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=d --attribute="d" --subject="$EKEY e" --ttl="2019-12-12 10:00:00"`
56gnunet-credential --createSubjectSide --ego=e --import "$SIGNED" 57gnunet-credential --createSubjectSide --ego=e --import="$SIGNED"
57gnunet-namestore -D -z e 58gnunet-namestore -D -z e
58SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=e --attribute="e" --subject="$FKEY f" --ttl="2019-12-12 10:00:00"` 59SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=e --attribute="e" --subject="$FKEY f" --ttl="2019-12-12 10:00:00"`
59gnunet-credential --createSubjectSide --ego=f --import "$SIGNED" 60gnunet-credential --createSubjectSide --ego=f --import="$SIGNED"
60gnunet-namestore -D -z f 61gnunet-namestore -D -z f
61SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=f --attribute="f" --subject="$GKEY" --ttl="2019-12-12 10:00:00"` 62SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=f --attribute="f" --subject="$GKEY" --ttl="2019-12-12 10:00:00"`
62gnunet-credential --createSubjectSide --ego=g --import "$SIGNED" --private 63gnunet-credential --createSubjectSide --ego=g --import="$SIGNED" --private
63gnunet-namestore -D -z g 64gnunet-namestore -D -z g
64 65
65# Starting to resolve 66# Starting to resolve
diff --git a/src/credential/test_credential_issue.sh b/src/credential/test_credential_issue.sh
index 833a094e6..3d4b82cf6 100755
--- a/src/credential/test_credential_issue.sh
+++ b/src/credential/test_credential_issue.sh
@@ -1,4 +1,4 @@
1#!/bin/sh 1#!/usr/bin/env bash
2trap "gnunet-arm -e -c test_credential_lookup.conf" SIGINT 2trap "gnunet-arm -e -c test_credential_lookup.conf" SIGINT
3 3
4LOCATION=$(which gnunet-config) 4LOCATION=$(which gnunet-config)
@@ -28,8 +28,8 @@ gnunet-identity -C testissuer -c test_credential_lookup.conf
28gnunet-identity -C testsubject -c test_credential_lookup.conf 28gnunet-identity -C testsubject -c test_credential_lookup.conf
29SUBJECT_KEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep testsubject | awk '{print $3}') 29SUBJECT_KEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep testsubject | awk '{print $3}')
30ISSUER_KEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep testissuer | awk '{print $3}') 30ISSUER_KEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep testissuer | awk '{print $3}')
31
31# Get credential and store it with subject (3) 32# Get credential and store it with subject (3)
32#CRED=`$DO_TIMEOUT gnunet-credential --issue --ego=testissuer --subject=$SUBJECT_KEY --attribute=$TEST_ATTR --ttl=5m -c test_credential_lookup.conf`
33SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=testissuer --attribute=$TEST_ATTR --subject=$SUBJECT_KEY --ttl="2019-12-12 10:00:00" -c test_credential_lookup.conf` 33SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=testissuer --attribute=$TEST_ATTR --subject=$SUBJECT_KEY --ttl="2019-12-12 10:00:00" -c test_credential_lookup.conf`
34 34
35STATUS=$? 35STATUS=$?
@@ -40,8 +40,7 @@ then
40 exit 1 40 exit 1
41fi 41fi
42#Try import 42#Try import
43$DO_TIMEOUT gnunet-credential --createSubjectSide --ego=testsubject --import "$SIGNED" --private -c test_credential_lookup.conf 43$DO_TIMEOUT gnunet-credential --createSubjectSide --ego=testsubject --import="$SIGNED" --private -c test_credential_lookup.conf
44#$DO_TIMEOUT gnunet-namestore -a -z testsubject -n c1 -t CRED -V "$CRED" -e 5m -c test_credential_lookup.conf
45RES=$? 44RES=$?
46gnunet-arm -e -c test_credential_lookup.conf 45gnunet-arm -e -c test_credential_lookup.conf
47exit $RES 46exit $RES
diff --git a/src/credential/test_credential_own.sh b/src/credential/test_credential_own.sh
index b868cdf67..8a94f90e7 100755
--- a/src/credential/test_credential_own.sh
+++ b/src/credential/test_credential_own.sh
@@ -56,31 +56,33 @@ STATE_STUD_ATTR="student"
56REG_STUD_ATTR="student" 56REG_STUD_ATTR="student"
57END_ATTR="end" 57END_ATTR="end"
58 58
59gnunet-identity -d
60
59# FORWARD, subject side stored (different constallations) 61# FORWARD, subject side stored (different constallations)
60SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=a --attribute="a" --subject="$AKEY b.c" --ttl="2019-12-12 10:00:00"` 62SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=a --attribute="a" --subject="$AKEY b.c" --ttl="2019-12-12 10:00:00"`
61gnunet-credential --createSubjectSide --ego=a --import "$SIGNED" 63gnunet-credential --createSubjectSide --ego=a --import="$SIGNED"
62gnunet-namestore -D -z a 64gnunet-namestore -D -z a
63 65
64SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=a --attribute="b" --subject="$DKEY d" --ttl="2019-12-12 10:00:00"` 66SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=a --attribute="b" --subject="$DKEY d" --ttl="2019-12-12 10:00:00"`
65gnunet-credential --createSubjectSide --ego=d --import "$SIGNED" 67gnunet-credential --createSubjectSide --ego=d --import="$SIGNED"
66gnunet-namestore -D -z d 68gnunet-namestore -D -z d
67 69
68SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=d --attribute="d" --subject="$EKEY" --ttl="2019-12-12 10:00:00"` 70SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=d --attribute="d" --subject="$EKEY" --ttl="2019-12-12 10:00:00"`
69gnunet-credential --createSubjectSide --ego=e --import "$SIGNED" 71gnunet-credential --createSubjectSide --ego=e --import="$SIGNED"
70gnunet-namestore -D -z e 72gnunet-namestore -D -z e
71 73
72SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=e --attribute="c" --subject="$FKEY c" --ttl="2019-12-12 10:00:00"` 74SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=e --attribute="c" --subject="$FKEY c" --ttl="2019-12-12 10:00:00"`
73gnunet-credential --createSubjectSide --ego=f --import "$SIGNED" 75gnunet-credential --createSubjectSide --ego=f --import="$SIGNED"
74SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=e --attribute="k" --subject="$FKEY c.k" --ttl="2019-12-12 10:00:00"` 76SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=e --attribute="k" --subject="$FKEY c.k" --ttl="2019-12-12 10:00:00"`
75gnunet-credential --createSubjectSide --ego=f --import "$SIGNED" 77gnunet-credential --createSubjectSide --ego=f --import="$SIGNED"
76gnunet-namestore -D -z f 78gnunet-namestore -D -z f
77 79
78SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=f --attribute="c" --subject="$GKEY" --ttl="2019-12-12 10:00:00"` 80SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=f --attribute="c" --subject="$GKEY" --ttl="2019-12-12 10:00:00"`
79gnunet-credential --createSubjectSide --ego=g --import "$SIGNED" --private 81gnunet-credential --createSubjectSide --ego=g --import="$SIGNED" --private
80SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=a --attribute="c" --subject="$GKEY" --ttl="2019-12-12 10:00:00"` 82SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=a --attribute="c" --subject="$GKEY" --ttl="2019-12-12 10:00:00"`
81gnunet-credential --createSubjectSide --ego=g --import "$SIGNED" --private 83gnunet-credential --createSubjectSide --ego=g --import="$SIGNED" --private
82SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=d --attribute="h.o" --subject="$GKEY" --ttl="2019-12-12 10:00:00"` 84SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=d --attribute="h.o" --subject="$GKEY" --ttl="2019-12-12 10:00:00"`
83gnunet-credential --createSubjectSide --ego=g --import "$SIGNED" 85gnunet-credential --createSubjectSide --ego=g --import="$SIGNED"
84gnunet-namestore -D -z g 86gnunet-namestore -D -z g
85 87
86 88
@@ -96,19 +98,19 @@ gnunet-credential --createIssuerSide --ego=stateu --attribute=$STATE_STUD_ATTR -
96 98
97# (4) RegistrarB issues Alice the credential "student" 99# (4) RegistrarB issues Alice the credential "student"
98SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=registrarb --attribute="$REG_STUD_ATTR" --subject="$ALICE_KEY" --ttl="2019-12-12 10:00:00"` 100SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=registrarb --attribute="$REG_STUD_ATTR" --subject="$ALICE_KEY" --ttl="2019-12-12 10:00:00"`
99gnunet-credential --createSubjectSide --ego=alice --import "$SIGNED" --private 101gnunet-credential --createSubjectSide --ego=alice --import="$SIGNED" --private
100 102
101# Starting to resolve 103# Starting to resolve
102echo "+++ Starting to Resolve +++" 104echo "+++ Starting to Resolve +++"
103 105
104# FORWARD 106# FORWARD
105#DELS=`$DO_TIMEOUT gnunet-credential --collect --issuer=$AKEY --attribute="a" --ego=g --forward -c test_credential_lookup.conf | paste -d, -s` 107#DELS=`$DO_TIMEOUT gnunet-credential --collect --issuer=$AKEY --attribute="a" --ego=g --forward -c test_credential_lookup.conf | paste -d, -s - -`
106#echo $DELS 108#echo $DELS
107#echo gnunet-credential --verify --issuer=$AKEY --attribute="a" --subject=$GKEY --delegate=\'$DELS\' --forward -c test_credential_lookup.conf 109#echo gnunet-credential --verify --issuer=$AKEY --attribute="a" --subject=$GKEY --delegate=\'$DELS\' --forward -c test_credential_lookup.conf
108#RES_DELS=`gnunet-credential --verify --issuer=$AKEY --attribute="a" --subject=$GKEY --delegate="$DELS" --forward -c test_credential_lookup.conf` 110#RES_DELS=`gnunet-credential --verify --issuer=$AKEY --attribute="a" --subject=$GKEY --delegate="$DELS" --forward -c test_credential_lookup.conf`
109 111
110# BACKWARD 112# BACKWARD
111DELS=`$DO_TIMEOUT gnunet-credential --collect --issuer=$EPUB_KEY --attribute=$DISC_ATTR --ego=alice --backward -c test_credential_lookup.conf | paste -d, -s` 113DELS=`$DO_TIMEOUT gnunet-credential --collect --issuer=$EPUB_KEY --attribute=$DISC_ATTR --ego=alice --backward -c test_credential_lookup.conf | paste -d, -s - -`
112echo $DELS 114echo $DELS
113echo gnunet-credential --verify --issuer=$EPUB_KEY --attribute=$DISC_ATTR --subject=$ALICE_KEY --delegate=\'$DELS\' --backward -c test_credential_lookup.conf 115echo gnunet-credential --verify --issuer=$EPUB_KEY --attribute=$DISC_ATTR --subject=$ALICE_KEY --delegate=\'$DELS\' --backward -c test_credential_lookup.conf
114gnunet-credential --verify --issuer=$EPUB_KEY --attribute=$DISC_ATTR --subject=$ALICE_KEY --delegate="$DELS" --backward -c test_credential_lookup.conf 116gnunet-credential --verify --issuer=$EPUB_KEY --attribute=$DISC_ATTR --subject=$ALICE_KEY --delegate="$DELS" --backward -c test_credential_lookup.conf
diff --git a/src/credential/test_credential_verify.sh b/src/credential/test_credential_verify.sh
index 08060f60a..38492de8e 100755
--- a/src/credential/test_credential_verify.sh
+++ b/src/credential/test_credential_verify.sh
@@ -41,6 +41,8 @@ DEVELOPER_ATTR="developer"
41DEV_ATTR="developer" 41DEV_ATTR="developer"
42TEST_CREDENTIAL="mygnunetcreds" 42TEST_CREDENTIAL="mygnunetcreds"
43 43
44gnunet-identity -d
45
44# (1) A service assigns the attribute "user" to all entities that have been assigned "member" by entities that werde assigned "project" from GNU 46# (1) A service assigns the attribute "user" to all entities that have been assigned "member" by entities that werde assigned "project" from GNU
45gnunet-credential --createIssuerSide --ego=service --attribute="$USER_ATTR" --subject="$GNU_KEY $GNU_PROJECT_ATTR.$MEMBER_ATTR" --ttl="2019-12-12 10:00:00" -c test_credential_lookup.conf 47gnunet-credential --createIssuerSide --ego=service --attribute="$USER_ATTR" --subject="$GNU_KEY $GNU_PROJECT_ATTR.$MEMBER_ATTR" --ttl="2019-12-12 10:00:00" -c test_credential_lookup.conf
46gnunet-namestore -D -z service 48gnunet-namestore -D -z service
@@ -56,13 +58,13 @@ gnunet-namestore -D -z gnunet
56 58
57# (5) GNUnet signes the delegate and Alice stores it 59# (5) GNUnet signes the delegate and Alice stores it
58SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=gnunet --attribute=$DEV_ATTR --subject=$ALICE_KEY --ttl="2019-12-12 10:00:00"` 60SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=gnunet --attribute=$DEV_ATTR --subject=$ALICE_KEY --ttl="2019-12-12 10:00:00"`
59gnunet-credential --createSubjectSide --ego=alice --import "$SIGNED" --private 61gnunet-credential --createSubjectSide --ego=alice --import="$SIGNED" --private
60gnunet-namestore -D -z alice 62gnunet-namestore -D -z alice
61 63
62# Starting to resolve 64# Starting to resolve
63echo "+++ Starting to Resolve +++" 65echo "+++ Starting to Resolve +++"
64 66
65DELS=`$DO_TIMEOUT gnunet-credential --collect --issuer=$SERVICE_KEY --attribute=$USER_ATTR --ego=alice --backward -c test_credential_lookup.conf | paste -d, -s` 67DELS=`$DO_TIMEOUT gnunet-credential --collect --issuer=$SERVICE_KEY --attribute=$USER_ATTR --ego=alice --backward -c test_credential_lookup.conf | paste -d, -s - -`
66echo $DELS 68echo $DELS
67echo gnunet-credential --verify --issuer=$SERVICE_KEY --attribute=$USER_ATTR --subject=$ALICE_KEY --delegate=\'$DELS\' --backward -c test_credential_lookup.conf 69echo gnunet-credential --verify --issuer=$SERVICE_KEY --attribute=$USER_ATTR --subject=$ALICE_KEY --delegate=\'$DELS\' --backward -c test_credential_lookup.conf
68gnunet-credential --verify --issuer=$SERVICE_KEY --attribute=$USER_ATTR --subject=$ALICE_KEY --delegate="$DELS" --backward -c test_credential_lookup.conf 70gnunet-credential --verify --issuer=$SERVICE_KEY --attribute=$USER_ATTR --subject=$ALICE_KEY --delegate="$DELS" --backward -c test_credential_lookup.conf
diff --git a/src/credential/test_credential_verify_and.sh b/src/credential/test_credential_verify_and.sh
index 03313c692..3a2852dc6 100755
--- a/src/credential/test_credential_verify_and.sh
+++ b/src/credential/test_credential_verify_and.sh
@@ -40,6 +40,8 @@ DEVELOPER_ATTR="developer"
40DEV_ATTR="developer" 40DEV_ATTR="developer"
41TEST_CREDENTIAL="mygnunetcreds" 41TEST_CREDENTIAL="mygnunetcreds"
42 42
43gnunet-identity -d
44
43# (1) A service assigns the attribute "user" to all entities that have been assigned "member" by entities that werde assigned "project" from GNU 45# (1) A service assigns the attribute "user" to all entities that have been assigned "member" by entities that werde assigned "project" from GNU
44gnunet-credential --createIssuerSide --ego=service --attribute="$USER_ATTR" --subject="$GNU_KEY $GNU_PROJECT_ATTR.$MEMBER_ATTR" --ttl="2019-12-12 10:00:00" -c test_credential_lookup.conf 46gnunet-credential --createIssuerSide --ego=service --attribute="$USER_ATTR" --subject="$GNU_KEY $GNU_PROJECT_ATTR.$MEMBER_ATTR" --ttl="2019-12-12 10:00:00" -c test_credential_lookup.conf
45gnunet-namestore -D -z service 47gnunet-namestore -D -z service
@@ -54,15 +56,15 @@ gnunet-namestore -D -z gnunet
54 56
55# (5) GNUnet signes the delegates and Alice stores it 57# (5) GNUnet signes the delegates and Alice stores it
56SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=gnunet --attribute=$DEV_ATTR --subject=$ALICE_KEY --ttl="2019-12-12 10:00:00"` 58SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=gnunet --attribute=$DEV_ATTR --subject=$ALICE_KEY --ttl="2019-12-12 10:00:00"`
57gnunet-credential --createSubjectSide --ego=alice --import "$SIGNED" --private 59gnunet-credential --createSubjectSide --ego=alice --import="$SIGNED" --private
58SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=gnunet --attribute=$USER_ATTR --subject=$ALICE_KEY --ttl="2019-12-12 10:00:00"` 60SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=gnunet --attribute=$USER_ATTR --subject=$ALICE_KEY --ttl="2019-12-12 10:00:00"`
59gnunet-credential --createSubjectSide --ego=alice --import "$SIGNED" --private 61gnunet-credential --createSubjectSide --ego=alice --import="$SIGNED" --private
60gnunet-namestore -D -z alice 62gnunet-namestore -D -z alice
61 63
62# Starting to resolve 64# Starting to resolve
63echo "+++ Starting to Resolve +++" 65echo "+++ Starting to Resolve +++"
64 66
65DELS=`$DO_TIMEOUT gnunet-credential --collect --issuer=$SERVICE_KEY --attribute=$USER_ATTR --ego=alice --backward -c test_credential_lookup.conf | paste -d, -s` 67DELS=`$DO_TIMEOUT gnunet-credential --collect --issuer=$SERVICE_KEY --attribute=$USER_ATTR --ego=alice --backward -c test_credential_lookup.conf | paste -d, -s - -`
66echo $DELS 68echo $DELS
67echo gnunet-credential --verify --issuer=$SERVICE_KEY --attribute=$USER_ATTR --subject=$ALICE_KEY --delegate=\'$DELS\' --backward -c test_credential_lookup.conf 69echo gnunet-credential --verify --issuer=$SERVICE_KEY --attribute=$USER_ATTR --subject=$ALICE_KEY --delegate=\'$DELS\' --backward -c test_credential_lookup.conf
68gnunet-credential --verify --issuer=$SERVICE_KEY --attribute=$USER_ATTR --subject=$ALICE_KEY --delegate="$DELS" --backward -c test_credential_lookup.conf 70gnunet-credential --verify --issuer=$SERVICE_KEY --attribute=$USER_ATTR --subject=$ALICE_KEY --delegate="$DELS" --backward -c test_credential_lookup.conf
diff --git a/src/credential/test_credential_verify_simple.sh b/src/credential/test_credential_verify_simple.sh
index d7657c55f..bd0b260b1 100755
--- a/src/credential/test_credential_verify_simple.sh
+++ b/src/credential/test_credential_verify_simple.sh
@@ -27,15 +27,17 @@ TEST_ATTR="user"
27SUBJECT_KEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep testsubject | awk '{print $3}') 27SUBJECT_KEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep testsubject | awk '{print $3}')
28ISSUER_KEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep testissuer | awk '{print $3}') 28ISSUER_KEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep testissuer | awk '{print $3}')
29 29
30gnunet-identity -d
31
30# Create delegate (1) 32# Create delegate (1)
31SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=testissuer --attribute=$TEST_ATTR --subject=$SUBJECT_KEY --ttl="2019-12-12 10:00:00" -c test_credential_lookup.conf` 33SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=testissuer --attribute=$TEST_ATTR --subject=$SUBJECT_KEY --ttl="2019-12-12 10:00:00" -c test_credential_lookup.conf`
32gnunet-credential --createSubjectSide --ego=testsubject --import "$SIGNED" --private 34gnunet-credential --createSubjectSide --ego=testsubject --import="$SIGNED" --private
33gnunet-namestore -D -z testsubject 35gnunet-namestore -D -z testsubject
34 36
35# Starting to resolve 37# Starting to resolve
36echo "+++ Starting to Resolve +++" 38echo "+++ Starting to Resolve +++"
37 39
38DELS=`$DO_TIMEOUT gnunet-credential --collect --issuer=$ISSUER_KEY --attribute=$TEST_ATTR --ego=testsubject -c test_credential_lookup.conf | paste -d, -s` 40DELS=`$DO_TIMEOUT gnunet-credential --collect --issuer=$ISSUER_KEY --attribute=$TEST_ATTR --ego=testsubject -c test_credential_lookup.conf | paste -d, -s - -`
39echo $DELS 41echo $DELS
40gnunet-credential --verify --issuer=$ISSUER_KEY --attribute=$TEST_ATTR --subject=$SUBJECT_KEY --delegate="$DELS" -c test_credential_lookup.conf 42gnunet-credential --verify --issuer=$ISSUER_KEY --attribute=$TEST_ATTR --subject=$SUBJECT_KEY --delegate="$DELS" -c test_credential_lookup.conf
41 43