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