source: examples/example_scripts/python/run_e_prover @ bc7133b

abac0-leakabac0-meimei-idmei-rt0-nmei_rt0tvf-new-xml
Last change on this file since bc7133b was 9e063cb, checked in by Mei <mei@…>, 12 years ago

1) test out using encrypted private key to generate id credential

  • Property mode set to 100755
File size: 663 bytes
RevLine 
[4721618]1#!/bin/sh
2
3keystore=`pwd`
4
[9e063cb]5echo "generate an encrypted private key"
[4721618]6echo "dumdum" > pfile
[9e063cb]7openssl genrsa -des3 -out Soda_eprivate.pem -passout file:pfile
[4721618]8
[9e063cb]9echo "make a id credential with encrypted private key"
10creddy --generate --cn Soda --key Soda_eprivate.pem
11
12echo "make a generic  id credential"
13creddy --generate --cn Slush
14
15#principal
16creddy --generate --cn Cream
17
18echo "make an attribute with id with encrypted private key"
19./abac_e_attr.py Soda_ID.pem Soda_eprivate.pem Soda_attr.xml pfile Cream_ID.pem
20
21echo "make an attribute with id with none-encrypted private key"
22./abac_e_attr.py Slush_ID.pem Slush_private.pem Slush_attr.xml pfile Cream_ID.pem
[4721618]23
Note: See TracBrowser for help on using the repository browser.