3 # verify "root-ness" of all of the certs in specified directory.
6 echo Usage
: anchorSourceTest directory
7 echo A good directory would be ..
/..
/..
/security_certificates
/roots
/
11 set BUILD_DIR
=$LOCAL_BUILD_DIR
12 set CERTS_DIR
=$argv[1]
23 echo Usage
: anchorSourceTest directory
31 set CERTCRL
=$BUILD_DIR/certcrl
32 set CERTS_FROM_DB
=$BUILD_DIR/certsFromDb
33 foreach targ
($CERTCRL $CERTS_FROM_DB)
35 echo === $targ is missing. Try building clxutil.
40 echo starting anchorSourceTest
45 # -C use this as an anchor
46 # -a allow certs unverified by CRLs
47 # -f leaf cert is a CA
54 if ( ( -f "$certFile" ) && ( "$certFile" != X509Anchors
) ) then
56 echo testing
$certFile....
58 # $CERTCRL -c "$certFile" -C "$certFile" -a -f -L -T 20071217154316
59 $CERTCRL -c "$certFile" -C "$certFile" -a -f -L
61 echo "++++++++ Verification error on $certFile"
62 $CERTCRL -c "$certFile" -C "$certFile" -a -f -v
68 if($TEST_FAILED == 1) then
69 echo "anchorSourceTest FAILED"
74 echo "...anchorSourceTest complete"