source: examples/python_tests/acme_friend_rt1/setup.py @ 2be9809

mei_rt2mei_rt2_fix_1
Last change on this file since 2be9809 was f824a9e, checked in by Mei <mei@…>, 13 years ago

1) add more doc to python_tests

  • Property mode set to 100755
File size: 689 bytes
Line 
1#!/usr/bin/env python
2
3"""
4See README for the semantics.  This creates 4 prinicpals (Acme, Coyote,
5Roadrunner and Jackrabbit) used by the example. 
6
7"""
8import os
9import ABAC
10
11ctxt = ABAC.Context()
12
13acme=ABAC.ID("Acme", 0)
14acme.id_write_cert("Acme_ID.pem")
15acme.id_write_privkey("Acme_private.pem")
16
17coyote=ABAC.ID("Coyote", 0)
18coyote.id_write_cert("Coyote_ID.pem")
19coyote.id_write_privkey("Coyote_private.pem")
20
21roadrunner=ABAC.ID("Roadrunner", 0)
22roadrunner.id_write_cert("Roadrunner_ID.pem")
23roadrunner.id_write_privkey("Roadrunner_private.pem")
24
25jackrabbit=ABAC.ID("Jackrabbit", 0)
26jackrabbit.id_write_cert("Jackrabbit_ID.pem")
27jackrabbit.id_write_privkey("Jackrabbit_private.pem")
28
29
Note: See TracBrowser for help on using the repository browser.