mei_rt2mei_rt2_fix_1
Last change
on this file since 658e7ef was
f824a9e,
checked in by Mei <mei@…>, 13 years ago
|
1) add more doc to python_tests
|
-
Property mode set to
100755
|
File size:
817 bytes
|
Rev | Line | |
---|
[669b481] | 1 | #!/usr/bin/env python |
---|
| 2 | |
---|
| 3 | """ |
---|
[f824a9e] | 4 | See README for the semantics. This creates many principals. |
---|
[669b481] | 5 | """ |
---|
| 6 | import os |
---|
| 7 | import ABAC |
---|
| 8 | |
---|
| 9 | ctxt = ABAC.Context() |
---|
| 10 | |
---|
| 11 | alice=ABAC.ID("Alice", 0) |
---|
| 12 | alice.id_write_cert("Alice_ID.pem") |
---|
| 13 | alice.id_write_privkey("Alice_private.pem") |
---|
| 14 | |
---|
| 15 | party=ABAC.ID("Party", 0) |
---|
| 16 | party.id_write_cert("Party_ID.pem") |
---|
| 17 | party.id_write_privkey("Party_private.pem") |
---|
| 18 | |
---|
| 19 | tea=ABAC.ID("Tea", 0) |
---|
| 20 | tea.id_write_cert("Tea_ID.pem") |
---|
| 21 | tea.id_write_privkey("Tea_private.pem") |
---|
| 22 | |
---|
| 23 | hatter=ABAC.ID("Hatter", 0) |
---|
| 24 | hatter.id_write_cert("Hatter_ID.pem") |
---|
| 25 | hatter.id_write_privkey("Hatter_private.pem") |
---|
| 26 | |
---|
| 27 | marchhare=ABAC.ID("Marchhare", 0) |
---|
| 28 | marchhare.id_write_cert("Marchhare_ID.pem") |
---|
| 29 | marchhare.id_write_privkey("Marchhare_private.pem") |
---|
| 30 | |
---|
| 31 | dormouse=ABAC.ID("Dormouse", 0) |
---|
| 32 | dormouse.id_write_cert("Dormouse_ID.pem") |
---|
| 33 | dormouse.id_write_privkey("Dormouse_private.pem") |
---|
| 34 | |
---|
| 35 | |
---|
Note: See
TracBrowser
for help on using the repository browser.