[461541a] | 1 | #!/bin/sh |
---|
[3c30b59] | 2 | # keyid.sh |
---|
[461541a] | 3 | |
---|
[3c30b59] | 4 | . ${TESTDIR}/test_util.sh |
---|
| 5 | |
---|
| 6 | runTest "creddy_tests/keyid.sh" "test1" \ |
---|
| 7 | "$eloc/creddy --keyid --cert Acme_ID.pem" \ |
---|
| 8 | 0 "supplied with good identity cert" |
---|
| 9 | |
---|
| 10 | runTest "creddy_tests/keyid.sh" "test2" \ |
---|
| 11 | "$eloc/creddy --keyid --cert Acme_private.pem" \ |
---|
| 12 | 1 "supplied with privkey" |
---|
| 13 | |
---|
| 14 | runTest "creddy_tests/keyid.sh" "test3" \ |
---|
| 15 | "$eloc/creddy --keyid --cert Acme_buy_rockets__Acme_preferred_customer_attr.xml" \ |
---|
| 16 | 1 "supplied with attribute cert instead" |
---|
| 17 | |
---|
| 18 | runTest "creddy_tests/keyid.sh" "test4" \ |
---|
| 19 | "$eloc/creddy --keyid --cert bad_attr.xml" \ |
---|
| 20 | 1 "supplied with non existing attribute cert" |
---|
| 21 | |
---|
| 22 | runTest "creddy_tests/keyid.sh" "test5" \ |
---|
| 23 | "$eloc/creddy --keyid --cert not_ss.pem" \ |
---|
| 24 | 0 "supplied with good none self signed identity cert" |
---|
| 25 | |
---|
| 26 | runTest "creddy_tests/keyid.sh" "test6" \ |
---|
| 27 | "$eloc/creddy --keyid --cert not_ss.xml" \ |
---|
| 28 | 1 "supplied with none self signed attribute cert" |
---|
| 29 | |
---|
| 30 | runTest "creddy_tests/keyid.sh" "test7" \ |
---|
| 31 | "$eloc/creddy --keyid --cert priv.xml" \ |
---|
| 32 | 1 "supplied with GENI privilege attribute cert" |
---|
| 33 | |
---|
| 34 | runTest "creddy_tests/keyid.sh" "test8" \ |
---|
| 35 | "$eloc/creddy --keyid --cert PGissuer.pem" \ |
---|
| 36 | 0 "supplied with GENI issuer cert" |
---|
| 37 | |
---|
| 38 | runTest "creddy_tests/keyid.sh" "test9" \ |
---|
| 39 | "$eloc/creddy --keyid --cert ProtoGENI.xml" \ |
---|
| 40 | 1 "supplied with GENI issued attribute cert" |
---|
[ec550f7] | 41 | |
---|