source:
tests/example_scripts/python/run_e_prover
@
3c30b59
Last change on this file since 3c30b59 was 3c30b59, checked in by , 11 years ago | |
---|---|
|
|
File size: 708 bytes |
Rev | Line | |
---|---|---|
[4721618] | 1 | #!/bin/sh |
2 | ||
[3c30b59] | 3 | . ${TESTDIR}/test_util.sh |
4 | ||
[4721618] | 5 | keystore=`pwd` |
6 | ||
[9e063cb] | 7 | echo "generate an encrypted private key" |
[4721618] | 8 | echo "dumdum" > pfile |
[9e063cb] | 9 | openssl genrsa -des3 -out Soda_eprivate.pem -passout file:pfile |
[4721618] | 10 | |
[9e063cb] | 11 | echo "make a id credential with encrypted private key" |
[3c30b59] | 12 | $eloc/creddy --generate --cn Soda --key Soda_eprivate.pem |
[9e063cb] | 13 | |
14 | echo "make a generic id credential" | |
[3c30b59] | 15 | $eloc/creddy --generate --cn Slush |
[9e063cb] | 16 | |
17 | #principal | |
[3c30b59] | 18 | $eloc/creddy --generate --cn Cream |
[9e063cb] | 19 | |
20 | echo "make an attribute with id with encrypted private key" | |
21 | ./abac_e_attr.py Soda_ID.pem Soda_eprivate.pem Soda_attr.xml pfile Cream_ID.pem | |
22 | ||
23 | echo "make an attribute with id with none-encrypted private key" | |
24 | ./abac_e_attr.py Slush_ID.pem Slush_private.pem Slush_attr.xml pfile Cream_ID.pem | |
[4721618] | 25 |
Note: See TracBrowser
for help on using the repository browser.