diff options
Diffstat (limited to 'src/credential/test_credential_verify_simple.sh')
-rwxr-xr-x | src/credential/test_credential_verify_simple.sh | 6 |
1 files changed, 4 insertions, 2 deletions
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" | |||
27 | SUBJECT_KEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep testsubject | awk '{print $3}') | 27 | SUBJECT_KEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep testsubject | awk '{print $3}') |
28 | ISSUER_KEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep testissuer | awk '{print $3}') | 28 | ISSUER_KEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep testissuer | awk '{print $3}') |
29 | 29 | ||
30 | gnunet-identity -d | ||
31 | |||
30 | # Create delegate (1) | 32 | # Create delegate (1) |
31 | SIGNED=`$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` | 33 | SIGNED=`$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` |
32 | gnunet-credential --createSubjectSide --ego=testsubject --import "$SIGNED" --private | 34 | gnunet-credential --createSubjectSide --ego=testsubject --import="$SIGNED" --private |
33 | gnunet-namestore -D -z testsubject | 35 | gnunet-namestore -D -z testsubject |
34 | 36 | ||
35 | # Starting to resolve | 37 | # Starting to resolve |
36 | echo "+++ Starting to Resolve +++" | 38 | echo "+++ Starting to Resolve +++" |
37 | 39 | ||
38 | DELS=`$DO_TIMEOUT gnunet-credential --collect --issuer=$ISSUER_KEY --attribute=$TEST_ATTR --ego=testsubject -c test_credential_lookup.conf | paste -d, -s` | 40 | DELS=`$DO_TIMEOUT gnunet-credential --collect --issuer=$ISSUER_KEY --attribute=$TEST_ATTR --ego=testsubject -c test_credential_lookup.conf | paste -d, -s - -` |
39 | echo $DELS | 41 | echo $DELS |
40 | gnunet-credential --verify --issuer=$ISSUER_KEY --attribute=$TEST_ATTR --subject=$SUBJECT_KEY --delegate="$DELS" -c test_credential_lookup.conf | 42 | gnunet-credential --verify --issuer=$ISSUER_KEY --attribute=$TEST_ATTR --subject=$SUBJECT_KEY --delegate="$DELS" -c test_credential_lookup.conf |
41 | 43 | ||