mei_rt2mei_rt2_fix_1
Last change
on this file since 373bf68 was
f824a9e,
checked in by Mei <mei@…>, 12 years ago
|
1) add more doc to python_tests
|
-
Property mode set to
100755
|
File size:
627 bytes
|
Rev | Line | |
---|
[7211a95] | 1 | #!/usr/bin/env python |
---|
| 2 | |
---|
| 3 | """ |
---|
[f824a9e] | 4 | See README for the semantics. This creates four principals used |
---|
| 5 | by the example. |
---|
[7211a95] | 6 | |
---|
| 7 | """ |
---|
| 8 | import os |
---|
| 9 | import ABAC |
---|
| 10 | |
---|
| 11 | ctxt = ABAC.Context() |
---|
| 12 | |
---|
| 13 | alpha=ABAC.ID("Acme", 0) |
---|
| 14 | alpha.id_write_cert("Acme_ID.pem") |
---|
| 15 | alpha.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 | warnerbros=ABAC.ID("WarnerBros", 0) |
---|
| 22 | warnerbros.id_write_cert("WarnerBros_ID.pem") |
---|
| 23 | warnerbros.id_write_privkey("WarnerBros_private.pem") |
---|
| 24 | |
---|
| 25 | batman=ABAC.ID("Batman", 0) |
---|
| 26 | batman.id_write_cert("Batman_ID.pem") |
---|
| 27 | batman.id_write_privkey("Batman_private.pem") |
---|
| 28 | |
---|
| 29 | |
---|
Note: See
TracBrowser
for help on using the repository browser.