source: examples/python_tests/partial_proof_rt1/setup.py @ 20eaefe

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"""
4See README for the semantics.
5sets up 2 (Acme, Coyote, Ladybug) principal ID credentials
6"""
7import os
8import ABAC
9
10ctxt = ABAC.Context()
11
12acme=ABAC.ID("Acme", 0)
13acme.id_write_cert("Acme_ID.pem")
14acme.id_write_privkey("Acme_private.pem")
15
16osh=ABAC.ID("Osh", 0)
17osh.id_write_cert("Osh_ID.pem")
18osh.id_write_privkey("Osh_private.pem")
19
20burpee=ABAC.ID("Burpee", 0)
21burpee.id_write_cert("Burpee_ID.pem")
22burpee.id_write_privkey("Burpee_private.pem")
23
24coyote=ABAC.ID("Coyote", 0)
25coyote.id_write_cert("Coyote_ID.pem")
26coyote.id_write_privkey("Coyote_private.pem")
27
28ladybug=ABAC.ID("Ladybug", 0)
29ladybug.id_write_cert("Ladybug_ID.pem")
30ladybug.id_write_privkey("Ladybug_private.pem")
31
32granny=ABAC.ID("Granny", 0)
33granny.id_write_cert("Granny_ID.pem")
34granny.id_write_privkey("Granny_private.pem")
35
36pooh=ABAC.ID("Pooh", 0)
37pooh.id_write_cert("Pooh_ID.pem")
38pooh.id_write_privkey("Pooh_private.pem")
Note: See TracBrowser for help on using the repository browser.