mei_rt2mei_rt2_fix_1
Last change
on this file since 20eaefe was
b8a6fd2a,
checked in by Mei <mei@…>, 12 years ago
|
1) add new tests for attribute creation also for Attribute_chunk,
ID_chunk
|
-
Property mode set to
100755
|
File size:
623 bytes
|
Line | |
---|
1 | #!/usr/bin/env python |
---|
2 | |
---|
3 | """ |
---|
4 | See README for the semantics. This creates principals |
---|
5 | using ID and write out the credential file pair, cert/privkey |
---|
6 | """ |
---|
7 | import os |
---|
8 | import ABAC |
---|
9 | |
---|
10 | ctxt = ABAC.Context() |
---|
11 | |
---|
12 | jackID=ABAC.ID("SuperK", 0) |
---|
13 | jackID.id_write_cert("SuperK_ID.pem") |
---|
14 | jackID.id_write_privkey("SuperK_private.pem") |
---|
15 | |
---|
16 | jackID=ABAC.ID("Jack", 0) |
---|
17 | jackID.id_write_cert("Jack_ID.pem") |
---|
18 | jackID.id_write_privkey("Jack_private.pem") |
---|
19 | |
---|
20 | bobID=ABAC.ID("Bob", 0) |
---|
21 | bobID.id_write_cert("Bob_ID.pem") |
---|
22 | bobID.id_write_privkey("Bob_private.pem") |
---|
23 | |
---|
24 | maryID=ABAC.ID("Mary", 0) |
---|
25 | maryID.id_write_cert("Mary_ID.pem") |
---|
26 | maryID.id_write_privkey("Mary_private.pem") |
---|
27 | |
---|
28 | |
---|
Note: See
TracBrowser
for help on using the repository browser.