mei_rt2mei_rt2_fix_1
Last change
on this file since 20eaefe was
ba6027a,
checked in by Mei <mei@…>, 12 years ago
|
1) modified code all around to add support for encrypted private key for
ID credential
2) add new abac_key_t structure (abac_key.c)
3) add new keycheck option to creddy
4) add 2 new test suites
|
-
Property mode set to
100755
|
File size:
354 bytes
|
Rev | Line | |
---|
[ba6027a] | 1 | #!/usr/bin/env python |
---|
| 2 | |
---|
| 3 | """ |
---|
| 4 | See README for the semantics. |
---|
| 5 | sets up 2 (Acme, Coyote) principal ID credentials |
---|
| 6 | """ |
---|
| 7 | import os |
---|
| 8 | import ABAC |
---|
| 9 | |
---|
| 10 | ctxt = ABAC.Context() |
---|
| 11 | |
---|
| 12 | acme=ABAC.ID("Acme", 0, "Acme_private.pem", "") |
---|
| 13 | acme.id_write_cert("Acme_ID.pem") |
---|
| 14 | |
---|
| 15 | coyote=ABAC.ID("Coyote", 0) |
---|
| 16 | coyote.id_write_cert("Coyote_ID.pem") |
---|
| 17 | coyote.id_write_privkey("Coyote_private.pem") |
---|
| 18 | |
---|
Note: See
TracBrowser
for help on using the repository browser.