source: examples/python_tests/experiment_create_rt0/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: 612 bytes
RevLine 
[5f551d3]1#!/usr/bin/env python
2
3"""
[f824a9e]4See README for the semantics.  This creates principals
5used by the example.
[5f551d3]6"""
7import os
8import ABAC
9
10ctxt = ABAC.Context()
11
12acmeID=ABAC.ID("Acme", 0)
13acmeID.id_write_cert("Acme_ID.pem")
14acmeID.id_write_privkey("Acme_private.pem")
15
16bobID=ABAC.ID("Bob", 0)
17bobID.id_write_cert("Bob_ID.pem")
18bobID.id_write_privkey("Bob_private.pem")
19
20aliceID=ABAC.ID("Alice", 0)
21aliceID.id_write_cert("Alice_ID.pem")
22aliceID.id_write_privkey("Alice_private.pem")
23
24globotronID=ABAC.ID("Globotron", 0)
25globotronID.id_write_cert("Globotron_ID.pem")
26globotronID.id_write_privkey("Globotron_private.pem")
27
28
Note: See TracBrowser for help on using the repository browser.