source: examples/python_tests/alice_rt1/setup.py @ e205b49

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

1) add more doc to python_tests

  • Property mode set to 100755
File size: 817 bytes
Line 
1#!/usr/bin/env python
2
3"""
4See README for the semantics.  This creates many principals.
5"""
6import os
7import ABAC
8
9ctxt = ABAC.Context()
10
11alice=ABAC.ID("Alice", 0)
12alice.id_write_cert("Alice_ID.pem")
13alice.id_write_privkey("Alice_private.pem")
14
15party=ABAC.ID("Party", 0)
16party.id_write_cert("Party_ID.pem")
17party.id_write_privkey("Party_private.pem")
18
19tea=ABAC.ID("Tea", 0)
20tea.id_write_cert("Tea_ID.pem")
21tea.id_write_privkey("Tea_private.pem")
22
23hatter=ABAC.ID("Hatter", 0)
24hatter.id_write_cert("Hatter_ID.pem")
25hatter.id_write_privkey("Hatter_private.pem")
26
27marchhare=ABAC.ID("Marchhare", 0)
28marchhare.id_write_cert("Marchhare_ID.pem")
29marchhare.id_write_privkey("Marchhare_private.pem")
30
31dormouse=ABAC.ID("Dormouse", 0)
32dormouse.id_write_cert("Dormouse_ID.pem")
33dormouse.id_write_privkey("Dormouse_private.pem")
34
35
Note: See TracBrowser for help on using the repository browser.