source: examples/python_tests/basic_id/setup.py @ 02036f4

abac0-leakabac0-meimei-idmei-rt0-nmei_rt0tvf-new-xml
Last change on this file since 02036f4 was be6cb41, checked in by Mei <mei@…>, 12 years ago

1) forgot to add the new files

  • Property mode set to 100755
File size: 712 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
10jackID=ABAC.ID("Jack", 0)
11jackID.write_cert_file("Jack_ID.pem")
12jackID.write_privkey_file("Jack_private.pem")
13
14bobID=ABAC.ID("Bob", 0)
15bobID.write_cert_file("Bob_ID.pem")
16bobID.write_privkey_file("Bob_private.pem")
17
18markID=ABAC.ID("Mark2", 0)
19markID.write_privkey_file("Mark2_IDKEY.pem")
20markID.write_cert_file("Mark2_IDKEY.pem")
21
22johnID=ABAC.ID("John2", 0)
23johnID.write_cert_file("John2_other.pem")
24
25tomID=ABAC.ID("Tom2", 0)
26tomID.write_privkey_file("Tom2_IDKEY.pem")
27
28loriID=ABAC.ID("Lori2", 0)
29loriID.write_cert_file("Lori2_IDKEY.pem")
30
31
Note: See TracBrowser for help on using the repository browser.