importExportECDSA_P12 [plain text]
#! /bin/csh -f
source setupCommon
set ECDSA_SUBTOOL=./importExportECDSA_P12_Tool
set QUIET=NO
set QUIET_ARG=
set NOCLEAN=NO
set CLEAN=YES
while ( $ switch ( "$argv[1]" )
case q:
set QUIET=YES
set QUIET_ARG=-q
shift
breaksw
case N:
set CLEAN=NO
shift
breaksw
default:
echo Usage: importExportECDSA_P12 \[q\(uiet\)\] \[N\(oClean\)\]
exit(1)
endsw
end
echo === Begin ECDSA/PKCS12 test ===
set cmd="$SECURITY unlock -p $KEYCHAIN_PWD $KEYCHAIN"
if ($QUIET == NO) then
echo $cmd
endif
$cmd || exit(1)
set cmd="$ECDSA_SUBTOOL secp256r1ca.p12 $CLEAN $QUIET"
if ($QUIET == NO) then
echo $cmd
endif
$cmd || exit(1)
set cmd="$ECDSA_SUBTOOL secp384r1ca.p12 $CLEAN $QUIET"
if ($QUIET == NO) then
echo $cmd
endif
$cmd || exit(1)
set cmd="$ECDSA_SUBTOOL secp521r1ca.p12 $CLEAN $QUIET"
if ($QUIET == NO) then
echo $cmd
endif
$cmd || exit(1)
if ($QUIET == NO) then
echo === ECDSA/PKCS12 test complete ===
endif