source: examples/python_tests/basic_id/setup.py @ 4b46680

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

1) add more doc to python_tests

  • Property mode set to 100755
File size: 403 bytes
Line 
1#!/usr/bin/env python
2
3"""
4See README for the semantics.  This creates principals
5using ID and write out the credential file pair, cert/privkey
6"""
7import os
8import ABAC
9
10ctxt = ABAC.Context()
11
12jackID=ABAC.ID("Jack", 0)
13jackID.id_write_cert("Jack_ID.pem")
14jackID.id_write_privkey("Jack_private.pem")
15
16bobID=ABAC.ID("Bob", 0)
17bobID.id_write_cert("Bob_ID.pem")
18bobID.id_write_privkey("Bob_private.pem")
19
20
Note: See TracBrowser for help on using the repository browser.