mei_rt2mei_rt2_fix_1
Last change
on this file since 20eaefe was
da73657,
checked in by Mei <mei@…>, 12 years ago
|
1) example for partial proof
|
-
Property mode set to
100755
|
File size:
921 bytes
|
Line | |
---|
1 | #!/usr/bin/env python |
---|
2 | |
---|
3 | """ |
---|
4 | See README for the semantics. |
---|
5 | sets up 2 (Acme, Coyote, Ladybug) principal ID credentials |
---|
6 | """ |
---|
7 | import os |
---|
8 | import ABAC |
---|
9 | |
---|
10 | ctxt = ABAC.Context() |
---|
11 | |
---|
12 | acme=ABAC.ID("Acme", 0) |
---|
13 | acme.id_write_cert("Acme_ID.pem") |
---|
14 | acme.id_write_privkey("Acme_private.pem") |
---|
15 | |
---|
16 | osh=ABAC.ID("Osh", 0) |
---|
17 | osh.id_write_cert("Osh_ID.pem") |
---|
18 | osh.id_write_privkey("Osh_private.pem") |
---|
19 | |
---|
20 | burpee=ABAC.ID("Burpee", 0) |
---|
21 | burpee.id_write_cert("Burpee_ID.pem") |
---|
22 | burpee.id_write_privkey("Burpee_private.pem") |
---|
23 | |
---|
24 | coyote=ABAC.ID("Coyote", 0) |
---|
25 | coyote.id_write_cert("Coyote_ID.pem") |
---|
26 | coyote.id_write_privkey("Coyote_private.pem") |
---|
27 | |
---|
28 | ladybug=ABAC.ID("Ladybug", 0) |
---|
29 | ladybug.id_write_cert("Ladybug_ID.pem") |
---|
30 | ladybug.id_write_privkey("Ladybug_private.pem") |
---|
31 | |
---|
32 | granny=ABAC.ID("Granny", 0) |
---|
33 | granny.id_write_cert("Granny_ID.pem") |
---|
34 | granny.id_write_privkey("Granny_private.pem") |
---|
35 | |
---|
36 | pooh=ABAC.ID("Pooh", 0) |
---|
37 | pooh.id_write_cert("Pooh_ID.pem") |
---|
38 | pooh.id_write_privkey("Pooh_private.pem") |
---|
Note: See
TracBrowser
for help on using the repository browser.