abac0-leakabac0-meimei-idmei-rt0-nmei_rt0tvf-new-xml
Last change
on this file since bc7133b was
be6cb41,
checked in by Mei <mei@…>, 12 years ago
|
1) forgot to add the new files
|
-
Property mode set to
100755
|
File size:
712 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("Jack", 0) |
---|
| 11 | jackID.write_cert_file("Jack_ID.pem") |
---|
| 12 | jackID.write_privkey_file("Jack_private.pem") |
---|
| 13 | |
---|
| 14 | bobID=ABAC.ID("Bob", 0) |
---|
| 15 | bobID.write_cert_file("Bob_ID.pem") |
---|
| 16 | bobID.write_privkey_file("Bob_private.pem") |
---|
| 17 | |
---|
| 18 | markID=ABAC.ID("Mark2", 0) |
---|
| 19 | markID.write_privkey_file("Mark2_IDKEY.pem") |
---|
| 20 | markID.write_cert_file("Mark2_IDKEY.pem") |
---|
| 21 | |
---|
| 22 | johnID=ABAC.ID("John2", 0) |
---|
| 23 | johnID.write_cert_file("John2_other.pem") |
---|
| 24 | |
---|
| 25 | tomID=ABAC.ID("Tom2", 0) |
---|
| 26 | tomID.write_privkey_file("Tom2_IDKEY.pem") |
---|
| 27 | |
---|
| 28 | loriID=ABAC.ID("Lori2", 0) |
---|
| 29 | loriID.write_cert_file("Lori2_IDKEY.pem") |
---|
| 30 | |
---|
| 31 | |
---|
Note: See
TracBrowser
for help on using the repository browser.