mei_rt2mei_rt2_fix_1
Last change
on this file since c6d5da3 was
f824a9e,
checked in by Mei <mei@…>, 13 years ago
|
1) add more doc to python_tests
|
-
Property mode set to
100755
|
File size:
689 bytes
|
Rev | Line | |
---|
[7211a95] | 1 | #!/usr/bin/env python |
---|
| 2 | |
---|
| 3 | """ |
---|
[f824a9e] | 4 | See README for the semantics. This creates 4 prinicpals (Acme, Coyote, |
---|
| 5 | Roadrunner and Jackrabbit) used by the example. |
---|
[7211a95] | 6 | |
---|
| 7 | """ |
---|
| 8 | import os |
---|
| 9 | import ABAC |
---|
| 10 | |
---|
| 11 | ctxt = ABAC.Context() |
---|
| 12 | |
---|
| 13 | acme=ABAC.ID("Acme", 0) |
---|
| 14 | acme.id_write_cert("Acme_ID.pem") |
---|
| 15 | acme.id_write_privkey("Acme_private.pem") |
---|
| 16 | |
---|
| 17 | coyote=ABAC.ID("Coyote", 0) |
---|
| 18 | coyote.id_write_cert("Coyote_ID.pem") |
---|
| 19 | coyote.id_write_privkey("Coyote_private.pem") |
---|
| 20 | |
---|
| 21 | roadrunner=ABAC.ID("Roadrunner", 0) |
---|
| 22 | roadrunner.id_write_cert("Roadrunner_ID.pem") |
---|
| 23 | roadrunner.id_write_privkey("Roadrunner_private.pem") |
---|
| 24 | |
---|
| 25 | jackrabbit=ABAC.ID("Jackrabbit", 0) |
---|
| 26 | jackrabbit.id_write_cert("Jackrabbit_ID.pem") |
---|
| 27 | jackrabbit.id_write_privkey("Jackrabbit_private.pem") |
---|
| 28 | |
---|
| 29 | |
---|
Note: See
TracBrowser
for help on using the repository browser.