3 # run client-side authenticaiton tests on external servers. These
4 # servers will undoubtedly change their behavior some day.
7 set TEST_HOST
=www.cynic.org
8 set TEST_PATH
=//admin
/status
9 set SSL_KEYCHAIN
=newcert
11 # use this to explicitly open the keychain
15 #set KEYCHAIN_PWD="z=newcert"
18 echo ===== $TEST_HOST/$TEST_PATH requires authentication
19 echo ===== Try without cert
, expect fail
20 set cmd
="sslViewer $TEST_HOST $TEST_PATH a cynicRoot.cer t T=r"
24 echo @@@@@@ expected one error from sslViewer
, got
$status, aborting.
28 echo ===== Try with our bogus cert
, expect fail
29 set cmd
="sslViewer $TEST_HOST $TEST_PATH a cynicRoot.cer t k=$SSL_KEYCHAIN $KEYCHAIN_PWD T=s"
33 echo @@@@@@ expected one error from sslViewer
, got
$status, aborting.
38 echo ===== $TEST_HOST/ allows but does not require authentication
39 echo ===== Try without cert
, expect success
40 set cmd
="sslViewer $TEST_HOST a cynicRoot.cer t T=r"
43 echo ===== Try with our bogus cert
, expect fail
44 set cmd
="sslViewer $TEST_HOST $TEST_PATH a cynicRoot.cer k=$SSL_KEYCHAIN $KEYCHAIN_PWD t T=s"
48 echo @@@@@@ expected one error from sslViewer
, got
$status, aborting.
52 set TEST_HOST
=doncio.net
53 set TEST_PATH
=/secure
/DoD_soft_cert
55 echo ===== $TEST_HOST/$TEST_PATH requests authentication
56 set cmd
="sslViewer $TEST_HOST $TEST_PATH 3 r T=r"
59 set cmd
="sslViewer $TEST_HOST $TEST_PATH t r T=r"
62 echo ===== Try with our bogus cert
, expect fail
63 set cmd
="sslViewer $TEST_HOST $TEST_PATH k=$SSL_KEYCHAIN $KEYCHAIN_PWD t r T=s"
67 echo @@@@@@ expected one error from sslViewer
, got
$status, aborting.
70 set cmd
="sslViewer $TEST_HOST $TEST_PATH k=$SSL_KEYCHAIN $KEYCHAIN_PWD 3 r T=s"
74 echo @@@@@@ expected one error from sslViewer
, got
$status, aborting.
79 echo ===== authExtern success