source: examples/creddy_tests/setup.sh @ bc7133b

abac0-leakabac0-meimei-idmei-rt0-nmei_rt0tvf-new-xml
Last change on this file since bc7133b was 461541a, checked in by Mei <mei@…>, 12 years ago

1) updated original rt0 to remove libstrongswan dependency

a) identity credential being made/accessed with openssl api calls

(X509/EVP_PKEY pem)

b) attribute credential being made/access via xmlsec1 (custom XML

structure)

2) refactored libcreddy into libabac and now one ABAC namespace for

libabac

3) added attribute_rule suboption to creddy's attribute as another way

to insert access rule

4) added some regression tests into example directory
5) updated some docs.

  • Property mode set to 100755
File size: 764 bytes
RevLine 
[461541a]1#!/bin/sh
2
3#Acme.buy_rockets <- Acme.preferred_customer
4#Acme.preferred_customer <- Coyote
5
6rm -rf *.pem *.xml *.out
7
8pwd=`pwd`
9eloc=`which creddy | sed 's/\/creddy//'`
10if [ "$eloc" = "" ]; then
11  echo "ERROR: creddy is not in the search path!!!"
12  exit 1
13fi
14
15$eloc/creddy --generate --cn Acme
16$eloc/creddy --generate --cn Coyote
17
18$eloc/creddy --attribute \
19       --issuer Acme_ID.pem --key Acme_private.pem --role buy_rockets \
20       --subject-cert Acme_ID.pem --subject-role preferred_customer \
21       --out Acme_buy_rockets__Acme_preferred_customer_attr.xml
22
23$eloc/creddy --attribute \
24       --issuer Acme_ID.pem --key Acme_private.pem --role preferred_customer \
25       --subject-cert Coyote_ID.pem \
26       --out Acme_preferred_customer__Coyote_attr.xml
27
Note: See TracBrowser for help on using the repository browser.