]>
git.saurik.com Git - apple/security.git/blob - SecurityTests/clxutils/updateCert
3 # Test certs; if expired, replace them via ssl PING
5 # usage: updateCert sslHost certFileBase cert...
7 # tweak this manually for debug
10 if ( $#argv < 3 ) then
11 echo "Usage: updateCert sslHost certFileBase cert..."
16 set certFileBase
=$argv[1]
18 set certArgs
="-c $argv[1]"
21 set certArgs
="$certArgs -c $argv[1]"
24 set OUTFILE
=$LOCAL_BUILD_DIR/.certVerifyOut
25 if($VERBOSE == YES
) then
26 echo Testing
$certArgs
28 $LOCAL_BUILD_DIR/certcrl
$certArgs -s >& $OUTFILE
29 grep TP_CERT_EXPIRED
$OUTFILE
31 if($VERBOSE == YES
) then
32 echo "These certs look good."
36 echo "@@@ Warning: replacing certs for $sslHost @@@"
37 $LOCAL_BUILD_DIR/sslViewer
$sslHost f
$certFileBase
39 echo "@@@ Error obtaining new cert for $sslHost @@@"
41 echo ...certs replaced
for $sslHost in `pwd`