source: tests/python_tests/basic_attribute/setup.py @ 7c748c9

abac0-leakabac0-mei
Last change on this file since 7c748c9 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: 615 bytes
Line 
1#!/usr/bin/env python
2
3"""
4See README for the semantics.  This creates principals
5using ID and write out the credential file pair, cert/privkey
6"""
7import os
8import ABAC
9
10jackID=ABAC.ID("SuperK", 0)
11jackID.write_cert_file("SuperK_ID.pem")
12jackID.write_privkey_file("SuperK_private.pem")
13
14jackID=ABAC.ID("Jack", 0)
15jackID.write_cert_file("Jack_ID.pem")
16jackID.write_privkey_file("Jack_private.pem")
17
18bobID=ABAC.ID("Bob", 0)
19bobID.write_cert_file("Bob_ID.pem")
20bobID.write_privkey_file("Bob_private.pem")
21
22maryID=ABAC.ID("Mary", 0)
23maryID.write_cert_file("Mary_ID.pem")
24maryID.write_privkey_file("Mary_private.pem")
25
Note: See TracBrowser for help on using the repository browser.