aboutsummaryrefslogtreecommitdiff
path: root/sslproxy.sh
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2021-12-30 19:27:32 +0100
committerAlex Auvolat <alex@adnab.me>2021-12-30 19:27:32 +0100
commitb00a8358b20ac99912bacafd8fee5466da257e67 (patch)
treedf81c06567cbae31098ac77f41c9c11d67b9cc79 /sslproxy.sh
parent230c1d727b951e032603a5c776f540003829bff6 (diff)
downloadnixcfg-b00a8358b20ac99912bacafd8fee5466da257e67.tar.gz
nixcfg-b00a8358b20ac99912bacafd8fee5466da257e67.zip
Add TLS to Nomad
Diffstat (limited to 'sslproxy.sh')
-rwxr-xr-xsslproxy.sh5
1 files changed, 5 insertions, 0 deletions
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