source: examples/example_scripts/python/run_e_prover @ 4e10a0f

abac0-leakabac0-meimei-idmei-rt0-nmei_rt0tvf-new-xml
Last change on this file since 4e10a0f 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
Line 
1#!/bin/sh
2
3keystore=`pwd`
4
5echo "generate an encrypted private key"
6echo "dumdum" > pfile
7openssl genrsa -des3 -out Soda_eprivate.pem -passout file:pfile
8
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
23
Note: See TracBrowser for help on using the repository browser.