From 4c15c8881087781b7611f4cf557389392889e1f1 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Tue, 4 Oct 2016 13:26:55 -0400 Subject: add an HTTPS version It does it's own process management (because socat is stupid and won't let you pass an arbitrary socket to OPENSSL), instead of outsourcing it to systemd/inetd/whatever. And stunnel is too complicated. --- httpsconnectd.sh.in | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 httpsconnectd.sh.in (limited to 'httpsconnectd.sh.in') diff --git a/httpsconnectd.sh.in b/httpsconnectd.sh.in new file mode 100644 index 0000000..3d1da77 --- /dev/null +++ b/httpsconnectd.sh.in @@ -0,0 +1,13 @@ +#!/usr/bin/env bash +# Copyright 2016 Luke Shumaker +# License: WTFPLv2 + +# Dependencies: +# - bash +# - socat (with OpenSSL support) +# - httpconnectd + +set -e +source @pkgconfdir@/https.conf +IFS=, +socat -d -d -d OPENSSL-LISTEN:"${port},${ssl_options[*]},reuseaddr,fork" EXEC:httpconnectd -- cgit v1.2.3