source: tests/creddy_prover_tests/experiment_create_rt0/README @ 3c30b59

abac0-leakabac0-mei
Last change on this file since 3c30b59 was 3c30b59, checked in by Mei <mei@…>, 11 years ago

1) add in new refactored regression testing directory
2) undo the abac.hh/ABAC.hh api changes
3) merged with Ted's changes to attribute format/nickname/issuer processing

  • Property mode set to 100755
File size: 2.0 KB
RevLine 
[461541a]1#!/bin/sh
2#
3#
[92661b4]4#Acme runs a testbed. They've delegated the authority to create
5#experiments to all their partners. The Globotron company is one such
[461541a]6#partner.
7#
8#    Acme.experiment_create <- Acme.partner.experiment_create
9#    Acme.partner <- Globotron
10#
11#Globotron has delegated the authority to anyone an admin thinks is a
12#'power user'.
13#
14#    Globotron.experiment_create <- Globotron.admin.power_user
15#
16#Alice is an admin, and her friend Bob is a power user:
17#
18#    Globotron.admin <- Alice
19#    Alice.power_user <- Bob
20#
21#From these credentials, it is possible to construct a proof graph
22#showing that Acme.experiment_create <- Bob.
23#
24#Note that there is a one-to-one correspondence with each credential
25#above and the attribute certificates below.
26#
27
28rm -rf *.pem *.xml
[f1817a9]29
[3c30b59]30. ${TESTDIR}/test_util.sh
[f1817a9]31
[3c30b59]32$eloc/creddy --generate --cn Acme
[f1817a9]33
[3c30b59]34$eloc/creddy --generate --cn Globotron
[f1817a9]35
[3c30b59]36$eloc/creddy --generate --cn Alice
[f1817a9]37
[3c30b59]38$eloc/creddy --generate --cn Bob
39
40$eloc/creddy --attribute \
[f1817a9]41       --issuer Acme_ID.pem --key Acme_private.pem --role experiment_create \
42       --subject-cert Acme_ID.pem --subject-role partner.experiment_create \
[461541a]43       --out Acme_experiment_create__Acme_partner_experiment_create_attr.xml
[f1817a9]44
[3c30b59]45$eloc/creddy --attribute \
[f1817a9]46       --issuer Acme_ID.pem --key Acme_private.pem --role partner \
47       --subject-cert Globotron_ID.pem \
[461541a]48       --out Acme_partner__Globotron_attr.xml
[f1817a9]49
[3c30b59]50$eloc/creddy --attribute \
[f1817a9]51       --issuer Globotron_ID.pem --key Globotron_private.pem --role experiment_create \
52       --subject-cert Globotron_ID.pem --subject-role admin.power_user \
[461541a]53       --out Globotron_experiment_create__Globotron_admin_power_user_attr.xml
[f1817a9]54
[3c30b59]55$eloc/creddy --attribute \
[f1817a9]56       --issuer Globotron_ID.pem --key Globotron_private.pem --role admin \
57       --subject-cert Alice_ID.pem \
[461541a]58       --out Globotron_admin__Alice_attr.xml
[f1817a9]59
[3c30b59]60$eloc/creddy --attribute \
[f1817a9]61       --issuer Alice_ID.pem --key Alice_private.pem --role power_user \
62       --subject-cert Bob_ID.pem \
[461541a]63       --out Alice_admin__Bob_attr.xml
64
65
Note: See TracBrowser for help on using the repository browser.