#!/usr/bin/env python """ to test with python """ import os import ABAC # See README for the semantics. This creates two prinicpals (Alpha and Bob) # used by the example. The ./attrs.py file creates the policy credentials. ctxt = ABAC.Context() alphaID=ABAC.ID("Alpha", 0) alphaID.id_write_cert("Alpha_ID.pem") alphaID.id_write_privkey("Alpha_private.pem") bobID=ABAC.ID("Bob", 0) bobID.id_write_cert("Bob_ID.pem") bobID.id_write_privkey("Bob_private.pem")