source: tests/creddy_tests/attribute_rule.sh @ 6d3fc40

abac0-leakabac0-meitvf-new-xml
Last change on this file since 6d3fc40 was ec550f7, checked in by Mei <mei@…>, 11 years ago

1) reworked how API doc is generated
2) tweak top level Makefile.am
3) loading issuer principal as side-effect of loading

an attribute credentials

4) add examples of GENI specific attribute credentials

and principal certificates into the regression testing

5) rename examples to tests

  • Property mode set to 100755
File size: 647 bytes
RevLine 
[461541a]1#!/bin/sh
2
3#attribute_rule.sh
4
5pwd=`pwd`
6eloc=`which creddy | sed 's/\/creddy//'`
7if [ "$eloc" = "" ]; then
8  echo "ERROR: creddy is not in the search path!!!"
9  exit 1
10fi
11
12$eloc/creddy --generate --cn Bigbird 1>/dev/null 2>& 1
13$eloc/creddy --generate --cn Coyote 1>/dev/null 2>& 1
14
15bigbird=`creddy --keyid --cert Bigbird_ID.pem`
16coyote=`creddy --keyid --cert Coyote_ID.pem`
17
18rule="$coyote.sneaky_friend<-$bigbird"
19
20$eloc/creddy --attribute \
21       --issuer Coyote_ID.pem --key Coyote_private.pem \
22       --attrrule "$rule" \
[9e063cb]23       --out Coyote_sneakyFriend__Bigbird_attr.xml
[461541a]24
[9e063cb]25$eloc/creddy --roles --cert Coyote_sneakyFriend__Bigbird_attr.xml
[461541a]26
Note: See TracBrowser for help on using the repository browser.