"Fossies" - the Fresh Open Source Software Archive

Member "hitch-1.5.2/src/tests/test28-separate_keyfiles.sh" (27 Aug 2019, 390 Bytes) of package /linux/www/hitch-1.5.2.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    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 22 ${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