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