mei_rt2mei_rt2_fix_1
Last change
on this file since 2be9809 was
f824a9e,
checked in by Mei <mei@…>, 13 years ago
|
1) add more doc to python_tests
|
-
Property mode set to
100755
|
File size:
569 bytes
|
Line | |
---|
1 | #!/usr/bin/env python |
---|
2 | |
---|
3 | """ |
---|
4 | See README for the semantics. This creates principals |
---|
5 | used by the example. |
---|
6 | """ |
---|
7 | import os |
---|
8 | import ABAC |
---|
9 | |
---|
10 | ctxt = ABAC.Context() |
---|
11 | |
---|
12 | geniID=ABAC.ID("Geni", 0) |
---|
13 | geniID.id_write_cert("Geni_ID.pem") |
---|
14 | geniID.id_write_privkey("Geni_private.pem") |
---|
15 | |
---|
16 | bobID=ABAC.ID("Bob", 0) |
---|
17 | bobID.id_write_cert("Bob_ID.pem") |
---|
18 | bobID.id_write_privkey("Bob_private.pem") |
---|
19 | |
---|
20 | jackID=ABAC.ID("Jack", 0) |
---|
21 | jackID.id_write_cert("Jack_ID.pem") |
---|
22 | jackID.id_write_privkey("Jack_private.pem") |
---|
23 | |
---|
24 | joeID=ABAC.ID("Joe", 0) |
---|
25 | joeID.id_write_cert("Joe_ID.pem") |
---|
26 | joeID.id_write_privkey("Joe_private.pem") |
---|
27 | |
---|
Note: See
TracBrowser
for help on using the repository browser.