source: tests/example_scripts/python/run_e_prover @ 3c30b59

abac0-leakabac0-mei
Last change on this file since 3c30b59 was 3c30b59, checked in by Mei <mei@…>, 11 years ago

1) add in new refactored regression testing directory
2) undo the abac.hh/ABAC.hh api changes
3) merged with Ted's changes to attribute format/nickname/issuer processing

  • Property mode set to 100755
File size: 708 bytes
RevLine 
[4721618]1#!/bin/sh
2
[3c30b59]3. ${TESTDIR}/test_util.sh
4
[4721618]5keystore=`pwd`
6
[9e063cb]7echo "generate an encrypted private key"
[4721618]8echo "dumdum" > pfile
[9e063cb]9openssl genrsa -des3 -out Soda_eprivate.pem -passout file:pfile
[4721618]10
[9e063cb]11echo "make a id credential with encrypted private key"
[3c30b59]12$eloc/creddy --generate --cn Soda --key Soda_eprivate.pem
[9e063cb]13
14echo "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
20echo "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
23echo "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.