source: examples/passphrase_tests/creddy/creddy_test_hand @ 340bd01

mei_rt2mei_rt2_fix_1
Last change on this file since 340bd01 was ba6027a, checked in by Mei <mei@…>, 12 years ago

1) modified code all around to add support for encrypted private key for

ID credential

2) add new abac_key_t structure (abac_key.c)
3) add new keycheck option to creddy
4) add 2 new test suites

  • Property mode set to 100755
File size: 1.7 KB
Line 
1
2
3#########################################################################
4# test different creddy calls using encrypted private key generated
5# eternal openssl call. This require user interaction
6#
7echo ">>>>  keycheck the encrypted private key (with passphrase file) ..."
8creddy --keycheck --key enc_private.pem --p=pfile
9echo "  "
10
11echo ">>>>  generate a regular abac private key ..."
12creddy --generate --cn abc
13echo "  "
14echo ">>>>  keycheck the regular private key ..."
15creddy --keycheck --key abc_private.pem
16echo "  "
17echo ">>>>  attr check the regular id credential ..."
18creddy --display --show=issuer,subject --cert abc_ID.pem
19echo "  "
20echo ">>>>  verify check the regular id credential ..."
21creddy --verify --cert abc_ID.pem
22echo "  "
23
24echo ">>>>  generate an id credential using encrypted private key (type:dumdum) ..."
25creddy --generate --cn abcE --key enc_private.pem --p
26echo "  "
27echo ">>>>  attr check the id credential ..."
28creddy --display --show=issuer,subject --cert abcE_ID.pem
29echo "  "
30echo ">>>>  verify check the id credential ..."
31creddy --verify --cert abcE_ID.pem
32echo "  "
33
34echo ">>>>  generate an id credential, reusing the regular private key ..."
35creddy --generate --cn abcN --key abc_private.pem
36echo "  "
37echo ">>>>  attr check the regular id credential ..."
38creddy --display --show=issuer,subject --cert abcN_ID.pem
39echo "  "
40echo ">>>>  verify check the regular id credential ..."
41creddy --verify --cert abcN_ID.pem
42echo "  "
43
44echo ">>>>  expected failure case (type:dumdum2) ..."
45creddy --generate --cn abc2 --key enc_private.pem --p
46echo "  "
47echo ">>>>  expected failure case (type:dumdum) ..."
48creddy --generate --cn abc3 --key bad_enc_private.pem --p
49
Note: See TracBrowser for help on using the repository browser.