aboutsummaryrefslogtreecommitdiff
path: root/scripts/check-hashes.sh
blob: 8ea3b8f3f245739c6e68b5ac24cb45033899b8b8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh -
# $Id$

cd `dirname $0`

: ${openssl=/u/sra/isc/route-pki/subvert-rpki.hactrn.net/openssl/trunk/apps/openssl}
: ${switches='-verbose -crl_check_all -policy_check -explicit_policy -policy 1.3.6.1.5.5.7.14.2 -x509_strict'}
: ${hashtree=hashed}

find $hashtree -type f -name '*.[0-9]*' 2>&1 -exec \
    $openssl verify $switches -CApath $(find $hashtree -type d | tr \\012 : | sed 's=:$==') {} \;