diff options
Diffstat (limited to 'src/credential/test_credential_verify_and.sh')
-rwxr-xr-x | src/credential/test_credential_verify_and.sh | 8 |
1 files changed, 5 insertions, 3 deletions
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" | |||
40 | DEV_ATTR="developer" | 40 | DEV_ATTR="developer" |
41 | TEST_CREDENTIAL="mygnunetcreds" | 41 | TEST_CREDENTIAL="mygnunetcreds" |
42 | 42 | ||
43 | gnunet-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 |
44 | gnunet-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 | 46 | gnunet-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 |
45 | gnunet-namestore -D -z service | 47 | gnunet-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 |
56 | SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=gnunet --attribute=$DEV_ATTR --subject=$ALICE_KEY --ttl="2019-12-12 10:00:00"` | 58 | SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=gnunet --attribute=$DEV_ATTR --subject=$ALICE_KEY --ttl="2019-12-12 10:00:00"` |
57 | gnunet-credential --createSubjectSide --ego=alice --import "$SIGNED" --private | 59 | gnunet-credential --createSubjectSide --ego=alice --import="$SIGNED" --private |
58 | SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=gnunet --attribute=$USER_ATTR --subject=$ALICE_KEY --ttl="2019-12-12 10:00:00"` | 60 | SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=gnunet --attribute=$USER_ATTR --subject=$ALICE_KEY --ttl="2019-12-12 10:00:00"` |
59 | gnunet-credential --createSubjectSide --ego=alice --import "$SIGNED" --private | 61 | gnunet-credential --createSubjectSide --ego=alice --import="$SIGNED" --private |
60 | gnunet-namestore -D -z alice | 62 | gnunet-namestore -D -z alice |
61 | 63 | ||
62 | # Starting to resolve | 64 | # Starting to resolve |
63 | echo "+++ Starting to Resolve +++" | 65 | echo "+++ Starting to Resolve +++" |
64 | 66 | ||
65 | DELS=`$DO_TIMEOUT gnunet-credential --collect --issuer=$SERVICE_KEY --attribute=$USER_ATTR --ego=alice --backward -c test_credential_lookup.conf | paste -d, -s` | 67 | DELS=`$DO_TIMEOUT gnunet-credential --collect --issuer=$SERVICE_KEY --attribute=$USER_ATTR --ego=alice --backward -c test_credential_lookup.conf | paste -d, -s - -` |
66 | echo $DELS | 68 | echo $DELS |
67 | echo gnunet-credential --verify --issuer=$SERVICE_KEY --attribute=$USER_ATTR --subject=$ALICE_KEY --delegate=\'$DELS\' --backward -c test_credential_lookup.conf | 69 | echo gnunet-credential --verify --issuer=$SERVICE_KEY --attribute=$USER_ATTR --subject=$ALICE_KEY --delegate=\'$DELS\' --backward -c test_credential_lookup.conf |
68 | gnunet-credential --verify --issuer=$SERVICE_KEY --attribute=$USER_ATTR --subject=$ALICE_KEY --delegate="$DELS" --backward -c test_credential_lookup.conf | 70 | gnunet-credential --verify --issuer=$SERVICE_KEY --attribute=$USER_ATTR --subject=$ALICE_KEY --delegate="$DELS" --backward -c test_credential_lookup.conf |