"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/tests/test39-client-cert-proxy.sh" between
hitch-1.6.1.tar.gz and hitch-1.7.0.tar.gz

About: Hitch is a libev-based high performance SSL/TLS proxy that terminates TLS/SSL connections and forwards the unencrypted traffic to some backend.

test39-client-cert-proxy.sh  (hitch-1.6.1):test39-client-cert-proxy.sh  (hitch-1.7.0)
skipping to change at line 16 skipping to change at line 16
parse_proxy_v2 $BACKENDPORT >proxy.dump & parse_proxy_v2 $BACKENDPORT >proxy.dump &
cat >hitch.cfg <<EOF cat >hitch.cfg <<EOF
backend = "[127.0.0.1]:$BACKENDPORT" backend = "[127.0.0.1]:$BACKENDPORT"
frontend = "[*]:$LISTENPORT" frontend = "[*]:$LISTENPORT"
pem-file = "${CERTSDIR}/default.example.com" pem-file = "${CERTSDIR}/default.example.com"
client-verify = optional client-verify = optional
client-verify-ca = "${CERTSDIR}/client-ca.pem" client-verify-ca = "${CERTSDIR}/client-ca.pem"
write-proxy = on write-proxy = on
proxy-client-cert = on
EOF EOF
start_hitch --config=hitch.cfg start_hitch --config=hitch.cfg
s_client -delay=1 -cert "${CERTSDIR}/client-cert01.pem" s_client -delay=1 -cert "${CERTSDIR}/client-cert01.pem"
cat proxy.dump cat proxy.dump
! grep ERROR proxy.dump ! grep ERROR proxy.dump
run_cmd grep "PP2_TYPE_SSL client" proxy.dump | grep -q "0x7" run_cmd grep "PP2_TYPE_SSL client" proxy.dump | grep -q "0x7"
run_cmd grep "PP2_TYPE_SSL verify" proxy.dump | grep -q "0x0" run_cmd grep "PP2_TYPE_SSL verify" proxy.dump | grep -q "0x0"
run_cmd grep "TLV 0xe0: len=1870" proxy.dump
parse_proxy_v2 $BACKENDPORT >proxy.dump & parse_proxy_v2 $BACKENDPORT >proxy.dump &
# no client cert provided # no client cert provided
s_client -delay=1 s_client -delay=1
! grep ERROR proxy.dump ! grep ERROR proxy.dump
cat proxy.dump cat proxy.dump
run_cmd grep "PP2_TYPE_SSL client" proxy.dump | grep -q "0x1" run_cmd grep "PP2_TYPE_SSL client" proxy.dump | grep -q "0x1"
run_cmd grep "PP2_TYPE_SSL verify" proxy.dump | grep -q "0x1" run_cmd grep "PP2_TYPE_SSL verify" proxy.dump | grep -q "0x1"
! run_cmd grep "TLV 0xe0" proxy.dump
 End of changes. 3 change blocks. 
0 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)