#!/bin/sh # # This directory contains python scripts: # abac_keyid.py # abac_attr.py # abac_prover.py # that demonstrates the use of ABAC API to # extract keyid of an ID credential, # compose a simple attribute credential # (also shows how to make a query with abac structure) # and a simple string query prover # # rm -rf IceCream* creddy --generate --cn IceCream ./abac_attr.py IceCream_ID.pem IceCream_private.pem IceCream_attr.der export SHA=`abac_keyid.py IceCream_ID.pem` echo $SHA ./abac_prover.py --keystore `pwd` --role "[keyid:$SHA].role:delicious" --principal "[keyid:$SHA]"