Sophie

Sophie

distrib > Fedora > 13 > i386 > by-pkgid > da15984c7fc182bb8424883955a72d63 > files > 5

myproxy-doc-5.3-1.fc13.i686.rpm

#!/bin/sh

# example certificate_issuer_checker script

# pull cert from stdin to shell variable
cert=`openssl x509 -text`

# check for MD5 signatures
echo "$cert" | grep 'Algorithm: md5' > /dev/null 2>&1
if [ $? = "0" ]; then
    echo "MD5 signature detected" 1>&2
    exit 1
fi

# all done
exit 0