#!/bin/sh
#creddy --verify --cert <cert> [ --attrcert <cert> ]

pwd=`pwd`
eloc=`which creddy | sed 's/\/creddy//'`
if [ "$eloc" = "" ]; then
  echo "ERROR: creddy is not in the search path!!!"
  exit 1
fi

$eloc/creddy --verify --cert Coyote_ID.pem --attrcert Acme_buy_rockets__Acme_preferred_customer_attr.xml
$eloc/creddy --verify --cert Acme_ID.pem --attrcert Acme_buy_rockets__Acme_preferred_customer_attr.xml
$eloc/creddy --verify --cert Acme_private.pem
$eloc/creddy --verify --cert Acme_ID.pem --attrcert bad.xml
$eloc/creddy --verify --cert Acme_buy_rockets__Acme_preferred_customer_attr.xml
$eloc/creddy --verify --cert bad.xml
