source: examples/python_tests/acme_rockets_rt0/setup.py @ 5f551d3

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

1) add more python examples

  • Property mode set to 100755
File size: 369 bytes
Line 
1#!/usr/bin/env python
2
3"""
4  Setup 4 principal ID credentials
5
6  Acme, Coyote, WarnerBros and Batman
7
8"""
9import os
10import ABAC
11
12ctxt = ABAC.Context()
13
14alpha=ABAC.ID("Acme", 0)
15alpha.id_write_cert("Acme_ID.pem")
16alpha.id_write_privkey("Acme_private.pem")
17
18coyote=ABAC.ID("Coyote", 0)
19coyote.id_write_cert("Coyote_ID.pem")
20coyote.id_write_privkey("Coyote_private.pem")
21
Note: See TracBrowser for help on using the repository browser.