Last change
on this file was
4f79997,
checked in by Mei <mei@…>, 11 years ago
|
1) add a new scaling test -haystack/ralphs
2) tweak some libabac code here and there
|
-
Property mode set to
100755
|
File size:
767 bytes
|
Line | |
---|
1 | #!/usr/bin/env sh |
---|
2 | |
---|
3 | if [ -z "${TESTDIR}" ] ; then |
---|
4 | TESTDIR=../.. |
---|
5 | fi |
---|
6 | . ${TESTDIR}/test_util.sh |
---|
7 | |
---|
8 | keystore=`pwd` |
---|
9 | |
---|
10 | echo "generate an encrypted private key" |
---|
11 | echo "dumdum" > pfile |
---|
12 | openssl genrsa -des3 -out Soda_eprivate.pem -passout file:pfile |
---|
13 | |
---|
14 | echo "make a id credential with encrypted private key" |
---|
15 | $eloc/creddy --generate --cn Soda --key Soda_eprivate.pem |
---|
16 | |
---|
17 | echo "make a generic id credential" |
---|
18 | $eloc/creddy --generate --cn Slush |
---|
19 | |
---|
20 | #principal |
---|
21 | $eloc/creddy --generate --cn Cream |
---|
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 |
---|
28 | |
---|
Note: See
TracBrowser
for help on using the repository browser.