1#! /bin/csh -f 2# 3# run server side of SSL client certificate state test. 4# 5set SSL_KEYCHAIN=localcert 6# 7# use this to explicitly open the keychain 8# 9set KEYCHAIN_PWD="z=localcert" 10# 11echo ===== 12echo ===== Run authClient script after server starts up 13echo ===== Server tries authentication, client refuses 14echo ===== 15set cmd="sslServer P=1200 k=$SSL_KEYCHAIN $KEYCHAIN_PWD u=t T=r" 16echo $cmd 17$cmd || exit(1) 18 19echo ===== 20echo ===== prompt the authClient Script 21echo ===== Server tries authentication, client sends cert 22echo ===== 23set cmd="sslServer P=1201 k=$SSL_KEYCHAIN $KEYCHAIN_PWD u=t T=s" 24echo $cmd 25$cmd || exit(1) 26 27echo ===== 28echo ===== prompt the authClient Script 29echo ===== Server requires authentication, client refuses, expect error 30echo ===== 31set cmd="sslServer P=1202 k=$SSL_KEYCHAIN $KEYCHAIN_PWD u=a T=r" 32echo $cmd 33$cmd 34if($status != 1) then 35 echo @@@@@@ expected one error from sslServer; got $status; aborting. 36 exit(1) 37endif 38 39echo ===== 40echo ===== prompt the authClient Script 41echo ===== Server requires authentication, client refuses, SSL3, expect error 42echo ===== 43set cmd="sslServer P=1203 k=$SSL_KEYCHAIN $KEYCHAIN_PWD u=a T=r" 44echo $cmd 45$cmd 46if($status != 1) then 47 echo @@@@@@ expected one error from sslServer; got $status; aborting. 48 exit(1) 49endif 50 51echo ===== 52echo ===== prompt the authClient Script 53echo ===== Server requires authentication, client sends cert 54echo ===== 55set cmd="sslServer P=1204 k=$SSL_KEYCHAIN $KEYCHAIN_PWD u=a T=s" 56echo $cmd 57$cmd || exit(1) 58 59echo ===== 60echo ===== authServe success 61echo ===== 62 63