From b00a8358b20ac99912bacafd8fee5466da257e67 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Thu, 30 Dec 2021 19:27:32 +0100 Subject: Add TLS to Nomad --- sslproxy.sh | 5 +++++ 1 file changed, 5 insertions(+) create mode 100755 sslproxy.sh (limited to 'sslproxy.sh') diff --git a/sslproxy.sh b/sslproxy.sh new file mode 100755 index 0000000..4f529fe --- /dev/null +++ b/sslproxy.sh @@ -0,0 +1,5 @@ +#!/bin/sh + +YEAR=$(date +%Y) + +socat -dd tcp4-listen:4646,reuseaddr,fork openssl:localhost:14646,cert=secrets/pki/nomad$YEAR-client.crt,key=secrets/pki/nomad$YEAR-client.key,cafile=secrets/pki/nomad$YEAR.crt -- cgit v1.2.3