test28-separate_keyfiles.sh (hitch-1.7.0) | : | test28-separate_keyfiles.sh (hitch-1.7.2) | ||
---|---|---|---|---|
#!/bin/sh | #!/bin/sh | |||
# read private key file and cert from 2 separate files | # read private key file and cert from 2 separate files | |||
. hitch_test.sh | . hitch_test.sh | |||
head -n 28 ${CERTSDIR}/default.example.com > priv.key | head -n 28 ${CERTSDIR}/default.example.com > priv.key | |||
tail -n 22 ${CERTSDIR}/default.example.com | head -n 17 >cert.crt | tail -n 25 ${CERTSDIR}/default.example.com | head -n 17 >cert.crt | |||
cat >hitch.cfg <<EOF | cat >hitch.cfg <<EOF | |||
pem-file = { | pem-file = { | |||
cert = "cert.crt" | cert = "cert.crt" | |||
private-key = "priv.key" | private-key = "priv.key" | |||
} | } | |||
frontend = "[localhost]:$LISTENPORT" | frontend = "[localhost]:$LISTENPORT" | |||
backend = "[hitch-tls.org]:80" | backend = "[hitch-tls.org]:80" | |||
EOF | EOF | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added |