#!/bin/sh

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 --keyid --cert Acme_ID.pem
$eloc/creddy --keyid --cert Acme_private.pem
$eloc/creddy --keyid --cert Acme_buy_rockets__Acme_preferred_customer_attr.xml
$eloc/creddy --keyid --cert bad_attr.xml

$eloc/creddy --keyid --cert not_ss.pem
$eloc/creddy --keyid --cert not_ss.xml
$eloc/creddy --keyid --cert priv.xml
$eloc/creddy --keyid --cert PGissuer.pem
$eloc/creddy --keyid --cert ProtoGENI.xml

