abac0-leakabac0-meimei-idtvf-new-xml
Last change
on this file since 13b087a was
d6d44fe,
checked in by Mei <mei@…>, 11 years ago
|
1) extend a test to include 'side-effect' issuer credential insertion
case
|
-
Property mode set to
100755
|
File size:
898 bytes
|
Line | |
---|
1 | #!/bin/sh |
---|
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 | # |
---|
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 | # |
---|
12 | |
---|
13 | #IceCream.delicious <- Chocolate |
---|
14 | |
---|
15 | rm -rf *.pem *.xml |
---|
16 | |
---|
17 | pwd=`pwd` |
---|
18 | eloc=`which creddy | sed 's/\/creddy//'` |
---|
19 | if [ "$eloc" = "" ]; then |
---|
20 | echo "ERROR: creddy is not in the search path!!!" |
---|
21 | exit 1 |
---|
22 | fi |
---|
23 | |
---|
24 | $eloc/creddy --generate --cn IceCream |
---|
25 | |
---|
26 | $eloc/creddy --generate --cn Chocolate |
---|
27 | |
---|
28 | $eloc/creddy --attribute \ |
---|
29 | --issuer IceCream_ID.pem --key IceCream_private.pem --role delicious \ |
---|
30 | --subject-cert Chocolate_ID.pem \ |
---|
31 | --out IceCream_delicious__Chocolate_attr.xml |
---|
Note: See
TracBrowser
for help on using the repository browser.