3 # Run ECDSA/PKCS12 import/export tests.
5 # Run this from SecurityTests/clxutils/importExport. The
6 # kcImport and kcExport programs must exist in the location
7 # specified by the LOCAL_BUILD_DIR env var.
9 # For this test we do the following for each of 3 PFX files created
10 # by openssl and obtained from:
12 # http://dev.experimentalstuff.com:8082/pkcs12/
14 # The three PFX files contain root certs and the keys that signed them.
16 # unlock and clear the keychain;
18 # export the imported private key in the clear;
20 # extract the public key from the cert;
21 # sign using exported private key;
22 # verify using the public key;
27 set ECDSA_SUBTOOL
=.
/importExportECDSA_P12_Tool
29 # user specified variables
49 echo Usage
: importExportECDSA_P12 \
[q\
(uiet\
)\
] \
[N\
(oClean\
)\
]
54 echo === Begin ECDSA
/PKCS12
test ===
57 set cmd
="$SECURITY unlock -p $KEYCHAIN_PWD $KEYCHAIN"
58 if ($QUIET == NO
) then
63 set cmd
="$ECDSA_SUBTOOL secp256r1ca.p12 $CLEAN $QUIET"
64 if ($QUIET == NO
) then
69 set cmd
="$ECDSA_SUBTOOL secp384r1ca.p12 $CLEAN $QUIET"
70 if ($QUIET == NO
) then
75 set cmd
="$ECDSA_SUBTOOL secp521r1ca.p12 $CLEAN $QUIET"
76 if ($QUIET == NO
) then
81 if ($QUIET == NO
) then
82 echo === ECDSA
/PKCS12
test complete
===