abac0-leakabac0-mei
Last change
on this file since 2be12d2 was
4f79997,
checked in by Mei <mei@…>, 11 years ago
|
1) add a new scaling test -haystack/ralphs
2) tweak some libabac code here and there
|
-
Property mode set to
100755
|
File size:
842 bytes
|
Rev | Line | |
---|
[4f79997] | 1 | #!/usr/bin/env sh |
---|
[92661b4] | 2 | # |
---|
| 3 | # This simple example makes use of 2 principals, IceCream and Chocolate. |
---|
| 4 | # |
---|
| 5 | # This example shows a very simple delegation of roles by IceCream. A |
---|
| 6 | # delicious flavor of IceCream is Chocolate. |
---|
| 7 | # |
---|
[d6d44fe] | 8 | # And, a query IceCream.delicious <-?- Chocolate is made (should succeed) |
---|
| 9 | # then, remove the issuer credential, IceCream, and repeat the query, |
---|
| 10 | # then, remove the principal credential, Chocolate, and repeat the query |
---|
| 11 | # |
---|
[b7b2ca1] | 12 | |
---|
| 13 | #IceCream.delicious <- Chocolate |
---|
| 14 | |
---|
| 15 | rm -rf *.pem *.xml |
---|
| 16 | |
---|
[3c30b59] | 17 | . ${TESTDIR}/test_util.sh |
---|
[4f79997] | 18 | if [ -z "${TESTDIR}" ] ; then |
---|
| 19 | TESTDIR=../.. |
---|
| 20 | fi |
---|
[b7b2ca1] | 21 | |
---|
| 22 | $eloc/creddy --generate --cn IceCream |
---|
| 23 | |
---|
| 24 | $eloc/creddy --generate --cn Chocolate |
---|
| 25 | |
---|
| 26 | $eloc/creddy --attribute \ |
---|
| 27 | --issuer IceCream_ID.pem --key IceCream_private.pem --role delicious \ |
---|
| 28 | --subject-cert Chocolate_ID.pem \ |
---|
| 29 | --out IceCream_delicious__Chocolate_attr.xml |
---|
Note: See
TracBrowser
for help on using the repository browser.