3 # redo the hashes for the certificates in your cert path or the ones passed
7 if [ "$OPENSSL"x = "x" -o ! -x "$OPENSSL" ]; then
14 if [ ! -f "$OPENSSL" ]; then
16 for dir in . `echo $PATH | sed -e 's/:/ /g'`; do
17 if [ -f "$dir/$OPENSSL" ]; then
22 if [ $found = 0 ]; then
23 echo "c_rehash: rehashing skipped ('openssl' program not available)" 1>&2
30 if [ "$*" = "" ]; then
31 CERTS=${*:-${SSL_CERT_DIR:-$SSL_DIR}}
41 if [ -d $i -a -w $i ]; then
46 if [ $i != '*.pem' ]; then
47 h=`$OPENSSL x509 -hash -noout -in $i`
48 if [ "x$h" = "x" ]; then
49 echo $i does not contain a certificate