abac0-leakabac0-meimei-idmei-rt0-nmei_rt0tvf-new-xml
Last change
on this file since ff71d24 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 | |
---|
3 | keystore=`pwd` |
---|
4 | |
---|
5 | echo "generate an encrypted private key" |
---|
6 | echo "dumdum" > pfile |
---|
7 | openssl genrsa -des3 -out Soda_eprivate.pem -passout file:pfile |
---|
8 | |
---|
9 | echo "make a id credential with encrypted private key" |
---|
10 | creddy --generate --cn Soda --key Soda_eprivate.pem |
---|
11 | |
---|
12 | echo "make a generic id credential" |
---|
13 | creddy --generate --cn Slush |
---|
14 | |
---|
15 | #principal |
---|
16 | creddy --generate --cn Cream |
---|
17 | |
---|
18 | echo "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 | |
---|
21 | echo "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.