"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/tests/test05-multiple-listen-SNI.sh" between
hitch-1.7.0.tar.gz and hitch-1.7.2.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.

test05-multiple-listen-SNI.sh  (hitch-1.7.0):test05-multiple-listen-SNI.sh  (hitch-1.7.2)
skipping to change at line 15 skipping to change at line 15
. hitch_test.sh . hitch_test.sh
start_hitch \ start_hitch \
--backend='[hitch-tls.org]:80' \ --backend='[hitch-tls.org]:80' \
--frontend="[localhost]:$LISTENPORT" \ --frontend="[localhost]:$LISTENPORT" \
"${CERTSDIR}/site1.example.com" \ "${CERTSDIR}/site1.example.com" \
"${CERTSDIR}/site2.example.com" \ "${CERTSDIR}/site2.example.com" \
"${CERTSDIR}/default.example.com" "${CERTSDIR}/default.example.com"
s_client >no-sni.dump s_client >no-sni.dump
subj_name_eq "default.example.com" no-sni.dump subject_field_eq CN "default.example.com" no-sni.dump
# send a SNI request # send a SNI request
s_client -servername site1.example.com >sni.dump s_client -servername site1.example.com >sni.dump
subj_name_eq "site1.example.com" sni.dump subject_field_eq CN "site1.example.com" sni.dump
curl_hitch curl_hitch
stop_hitch stop_hitch
cat >hitch.cfg <<EOF cat >hitch.cfg <<EOF
frontend = { frontend = {
host = "localhost" host = "localhost"
port = "$LISTENPORT" port = "$LISTENPORT"
skipping to change at line 41 skipping to change at line 41
pem-file = "${CERTSDIR}/site2.example.com" pem-file = "${CERTSDIR}/site2.example.com"
pem-file = "${CERTSDIR}/default.example.com" pem-file = "${CERTSDIR}/default.example.com"
} }
backend = "[hitch-tls.org]:80" backend = "[hitch-tls.org]:80"
EOF EOF
start_hitch --config=hitch.cfg start_hitch --config=hitch.cfg
s_client >cfg-no-sni.dump s_client >cfg-no-sni.dump
subj_name_eq "default.example.com" cfg-no-sni.dump subject_field_eq CN "default.example.com" cfg-no-sni.dump
s_client -servername site1.example.com >cfg-sni.dump s_client -servername site1.example.com >cfg-sni.dump
subj_name_eq "site1.example.com" cfg-sni.dump subject_field_eq CN "site1.example.com" cfg-sni.dump
s_client -servername SITE1.EXAMPLE.COM >cfg-sni-upper.dump s_client -servername SITE1.EXAMPLE.COM >cfg-sni-upper.dump
subj_name_eq "site1.example.com" cfg-sni-upper.dump subject_field_eq CN "site1.example.com" cfg-sni-upper.dump
 End of changes. 5 change blocks. 
4 lines changed or deleted 4 lines changed or added

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