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
RevLine 
[4f79997]1#!/usr/bin/env sh
[4721618]2
[4f79997]3if [ -z "${TESTDIR}" ] ; then
4    TESTDIR=../..
5fi
[3c30b59]6. ${TESTDIR}/test_util.sh
7
[4721618]8keystore=`pwd`
9
[9e063cb]10echo "generate an encrypted private key"
[4721618]11echo "dumdum" > pfile
[9e063cb]12openssl genrsa -des3 -out Soda_eprivate.pem -passout file:pfile
[4721618]13
[9e063cb]14echo "make a id credential with encrypted private key"
[3c30b59]15$eloc/creddy --generate --cn Soda --key Soda_eprivate.pem
[9e063cb]16
17echo "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
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
[4721618]28
Note: See TracBrowser for help on using the repository browser.