1 #!/bin/sh 2 # 3 # Test multiple listening sockets. 4 # 5 . hitch_test.sh 6 7 PORT2=$(expr $$ % 60000 + 3000) 8 9 start_hitch \ 10 --backend=[hitch-tls.org]:80 \ 11 --frontend="[localhost]:$LISTENPORT" \ 12 --frontend="[localhost]:$PORT2" \ 13 "${CERTSDIR}/site1.example.com" 14 15 for host in $(hitch_hosts) 16 do 17 s_client -connect "$host" >"$host.dump" 18 subject_field_eq CN "site1.example.com" "$host.dump" 19 curl_hitch -- "https://$host/" 20 done