3 # run NISCC "bad certificate" tests.
5 # For now this assumed that an sslServer task is already running.
8 echo Usage
: nisccSslTest port
12 set TESTCASES
=testcases
13 set SIMPLE_CERT_DIR
=$TESTCASES/simple_client
14 set CLIENT_KC
=nisccClient
15 set FULL_CLIENT_KC
=$HOME/Library
/Keychains
/$CLIENT_KC
16 set CLIENT_KEY
=client_key.der
18 set cmd
="cd $SIMPLE_CERT_DIR"
23 # Just once - create KC from scratch
25 set cmd
="rm -f $FULL_CLIENT_KC"
28 set cmd
="certtool y k=$FULL_CLIENT_KC p=$CLIENT_KC c"
30 $cmd > /dev
/null
|| exit(1)
33 skipThisNisccCert
$cert
37 dbTool
$FULL_CLIENT_KC D R
38 dbTool
$FULL_CLIENT_KC i c
=$cert k
=..
/$CLIENT_KEY || exit(1)
39 nisccSimpleClient localhost
$argv[1] $CLIENT_KC || exit(1)
42 echo ===== NISCC SSL Test SUCCESS
=====