diff options
Diffstat (limited to 'scripts/check-hashes.sh')
-rw-r--r-- | scripts/check-hashes.sh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/scripts/check-hashes.sh b/scripts/check-hashes.sh index ead94e6f..8ea3b8f3 100644 --- a/scripts/check-hashes.sh +++ b/scripts/check-hashes.sh @@ -3,9 +3,9 @@ cd `dirname $0` -openssl=/u/sra/isc/route-pki/subvert-rpki.hactrn.net/openssl/trunk/apps/openssl +: ${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} -capth=$(echo $(find hashed -type d) | tr \\040 :) - -find hashed -type f -name '*.?' | -xargs $openssl verify -verbose -crl_check_all -policy_check -explicit_policy -policy 1.3.6.1.5.5.7.14.2 -x509_strict -CApath $capth +find $hashtree -type f -name '*.[0-9]*' 2>&1 -exec \ + $openssl verify $switches -CApath $(find $hashtree -type d | tr \\012 : | sed 's=:$==') {} \; |