source: examples/creddy_tests/verify.sh @ ff71d24

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: 691 bytes
Line 
1#!/bin/sh
2#creddy --verify --cert <cert> [ --attrcert <cert> ]
3
4pwd=`pwd`
5eloc=`which creddy | sed 's/\/creddy//'`
6if [ "$eloc" = "" ]; then
7  echo "ERROR: creddy is not in the search path!!!"
8  exit 1
9fi
10
11$eloc/creddy --verify --cert Coyote_ID.pem --attrcert Acme_buy_rockets__Acme_preferred_customer_attr.xml
12$eloc/creddy --verify --cert Acme_ID.pem --attrcert Acme_buy_rockets__Acme_preferred_customer_attr.xml
13
14$eloc/creddy --verify --cert Acme_private.pem
15$eloc/creddy --verify --cert Acme_ID.pem --attrcert bad_attr.xml
16$eloc/creddy --verify --cert Acme_buy_rockets__Acme_preferred_customer_attr.xml
17$eloc/creddy --verify --cert bad_attr.xml
18$eloc/creddy --verify --cert Coyote_ID.pem
Note: See TracBrowser for help on using the repository browser.