mei_rt2mei_rt2_fix_1
Last change
on this file since 20eaefe was
f824a9e,
checked in by Mei <mei@…>, 12 years ago
|
1) add more doc to python_tests
|
-
Property mode set to
100755
|
File size:
486 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 | leagueID=ABAC.ID("League", 0) |
---|
13 | leagueID.id_write_cert("League_ID.pem") |
---|
14 | leagueID.id_write_privkey("League_private.pem") |
---|
15 | |
---|
16 | johnID=ABAC.ID("John", 0) |
---|
17 | johnID.id_write_cert("John_ID.pem") |
---|
18 | johnID.id_write_privkey("John_private.pem") |
---|
19 | |
---|
20 | markID=ABAC.ID("Mark", 0) |
---|
21 | markID.id_write_cert("Mark_ID.pem") |
---|
22 | markID.id_write_privkey("Mark_private.pem") |
---|
23 | |
---|
Note: See
TracBrowser
for help on using the repository browser.