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