#!/bin/sh

#
# view-xos-cert: Pretty-print an X.509 v3 certificate containing
# XtreemOS VO attributes as extensions
#
# Author: Ian Johnson, STFC Rutherford Appleton Laboratory. 23/10/08
#

test $# -ne 1 && echo "Usage: $0 certificate" && exit 1

confdir=/etc/xos/config/openssl

openssl x509 -text -certopt no_sigdump,no_pubkey -noout -in $1  | sed -f ${confdir}/view-xos-cert.sed
