mei_rt2mei_rt2_fix_1
Last change
on this file since 669b481 was
5f551d3,
checked in by Mei <mei@…>, 12 years ago
|
1) add more python examples
|
-
Property mode set to
100755
|
File size:
535 bytes
|
Rev | Line | |
---|
[5f551d3] | 1 | #!/usr/bin/env python |
---|
| 2 | |
---|
| 3 | """ |
---|
| 4 | to test with python |
---|
| 5 | |
---|
| 6 | |
---|
| 7 | """ |
---|
| 8 | import os |
---|
| 9 | import ABAC |
---|
| 10 | |
---|
| 11 | ctxt = ABAC.Context() |
---|
| 12 | |
---|
| 13 | isiID=ABAC.ID("ISI", 0) |
---|
| 14 | isiID.id_write_cert("ISI_ID.pem") |
---|
| 15 | isiID.id_write_privkey("ISI_private.pem") |
---|
| 16 | |
---|
| 17 | uscID=ABAC.ID("USC", 0) |
---|
| 18 | uscID.id_write_cert("USC_ID.pem") |
---|
| 19 | uscID.id_write_privkey("USC_private.pem") |
---|
| 20 | |
---|
| 21 | maryannID=ABAC.ID("Maryann", 0) |
---|
| 22 | maryannID.id_write_cert("Maryann_ID.pem") |
---|
| 23 | maryannID.id_write_privkey("Maryann_private.pem") |
---|
| 24 | |
---|
| 25 | johnID=ABAC.ID("John", 0) |
---|
| 26 | johnID.id_write_cert("John_ID.pem") |
---|
| 27 | johnID.id_write_privkey("John_private.pem") |
---|
| 28 | |
---|
Note: See
TracBrowser
for help on using the repository browser.