source: examples/python_tests/acme_friend_rt1/setup.py @ 34e667d

mei_rt2mei_rt2_fix_1
Last change on this file since 34e667d was f824a9e, checked in by Mei <mei@…>, 12 years ago

1) add more doc to python_tests

  • Property mode set to 100755
File size: 689 bytes
RevLine 
[7211a95]1#!/usr/bin/env python
2
3"""
[f824a9e]4See README for the semantics.  This creates 4 prinicpals (Acme, Coyote,
5Roadrunner and Jackrabbit) used by the example. 
[7211a95]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.