1 #!/bin/sh 2 3 # read private key file and cert from 2 separate files 4 5 . hitch_test.sh 6 7 head -n 28 ${CERTSDIR}/default.example.com > priv.key 8 tail -n 25 ${CERTSDIR}/default.example.com | head -n 17 >cert.crt 9 10 cat >hitch.cfg <<EOF 11 pem-file = { 12 cert = "cert.crt" 13 private-key = "priv.key" 14 } 15 frontend = "[localhost]:$LISTENPORT" 16 backend = "[hitch-tls.org]:80" 17 EOF 18 19 start_hitch --config=hitch.cfg