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