#!/usr/bin/env python """ See README for the semantics. This creates principals used by the example. """ import os import ABAC 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") maryannID=ABAC.ID("Maryann", 0) maryannID.id_write_cert("Maryann_ID.pem") maryannID.id_write_privkey("Maryann_private.pem") joeID=ABAC.ID("Joe", 0) joeID.id_write_cert("Joe_ID.pem") joeID.id_write_privkey("Joe_private.pem")