source: tests/example_scripts/python/run_e_prover

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
3if [ -z "${TESTDIR}" ] ; then
4    TESTDIR=../..
5fi
6. ${TESTDIR}/test_util.sh
7
8keystore=`pwd`
9
10echo "generate an encrypted private key"
11echo "dumdum" > pfile
12openssl genrsa -des3 -out Soda_eprivate.pem -passout file:pfile
13
14echo "make a id credential with encrypted private key"
15$eloc/creddy --generate --cn Soda --key Soda_eprivate.pem
16
17echo "make a generic  id credential"
18$eloc/creddy --generate --cn Slush
19
20#principal
21$eloc/creddy --generate --cn Cream
22
23echo "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
26echo "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.