source: examples/experiment_create_rt0_typed/README @ 9502c50

mei_rt2mei_rt2_fix_1meiyap-rt1rt2
Last change on this file since 9502c50 was 9502c50, checked in by Mei <mei@…>, 12 years ago

1) rename examples' rr to run_query
2) updated some doc
3) add decode to creddy --roles and creddy --display --show so it will

show more useful attribute rule string

4) stub in the python script in one of the example directory

  • Property mode set to 100755
File size: 2.2 KB
Line 
1#!/bin/sh
2#
3#
4#Acme runs a testbed. They've delegated the authority to create
5#experiments to all their partners. The Globotron company is one such
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
28# experiment_create_rt0_typed
29
30creddy --generate --cn Acme
31creddy --generate --cn Globotron
32creddy --generate --cn Alice
33creddy --generate --cn Bob
34
35#[keyid:Acme].role:experiment_create <- [keyid:Acme].role:partner.role:experiment_create
36creddy --attribute \
37       --issuer Acme_ID.pem --key Acme_private.pem --role experiment_create \
38       --subject-cert Acme_ID.pem --subject-role partner.experiment_create \
39       --out Acme_experiment_create__Acme_partner_experiment_create_attr.der
40
41#[keyid:Acme].role:partner <- [keyid:Globotron]
42creddy --attribute \
43       --issuer Acme_ID.pem --key Acme_private.pem --role partner \
44       --subject-cert Globotron_ID.pem \
45       --out Acme_partner__Globotron_attr.der
46
47#[keyid:Globotron].role:expriment_create <- [keyid:Globotron].role:admin.role:power_user
48creddy --attribute \
49       --issuer Globotron_ID.pem --key Globotron_private.pem --role experiment_create \
50       --subject-cert Globotron_ID.pem --subject-role admin.power_user \
51       --out Globotron_experiment_create__Globotron_admin_power_user_attr.der
52
53#[keyid:Globotron].role:admin <- [keyid:Alice]
54creddy --attribute \
55       --issuer Globotron_ID.pem --key Globotron_private.pem --role admin \
56       --subject-cert Alice_ID.pem \
57       --out Globotron_admin__Alice_attr.der
58
59#[keyid:Alice].role:power_user <- [keyid:Bob]
60creddy --attribute \
61       --issuer Alice_ID.pem --key Alice_private.pem --role power_user \
62       --subject-cert Bob_ID.pem \
63       --out Alice_power_user__Bob_attr.der
64
65
Note: See TracBrowser for help on using the repository browser.