source: tests/python_tests/basic_id/setup.py @ 6cd69a0

abac0-leakabac0-mei
Last change on this file since 6cd69a0 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: 712 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("Jack", 0)
11jackID.write_cert_file("Jack_ID.pem")
12jackID.write_privkey_file("Jack_private.pem")
13
14bobID=ABAC.ID("Bob", 0)
15bobID.write_cert_file("Bob_ID.pem")
16bobID.write_privkey_file("Bob_private.pem")
17
18markID=ABAC.ID("Mark2", 0)
19markID.write_privkey_file("Mark2_IDKEY.pem")
20markID.write_cert_file("Mark2_IDKEY.pem")
21
22johnID=ABAC.ID("John2", 0)
23johnID.write_cert_file("John2_other.pem")
24
25tomID=ABAC.ID("Tom2", 0)
26tomID.write_privkey_file("Tom2_IDKEY.pem")
27
28loriID=ABAC.ID("Lori2", 0)
29loriID.write_cert_file("Lori2_IDKEY.pem")
30
31
Note: See TracBrowser for help on using the repository browser.