diff options
author | Quentin Dufour <quentin@deuxfleurs.fr> | 2023-03-20 09:44:37 +0100 |
---|---|---|
committer | Quentin Dufour <quentin@deuxfleurs.fr> | 2023-03-20 09:45:05 +0100 |
commit | bebbf5bd8bef496e08bc0d6a094cc1b915f61a90 (patch) | |
tree | 302cb1a8589fc8052f587cb9df2b17351fe33b4e /cluster/prod/app/email/integration/tls-tls-proxy.sh | |
parent | 870511931a6b65dddaa726c5d03d068da03f5857 (diff) | |
download | nixcfg-bebbf5bd8bef496e08bc0d6a094cc1b915f61a90.tar.gz nixcfg-bebbf5bd8bef496e08bc0d6a094cc1b915f61a90.zip |
wip rsa-ecc proxy
Diffstat (limited to 'cluster/prod/app/email/integration/tls-tls-proxy.sh')
-rw-r--r-- | cluster/prod/app/email/integration/tls-tls-proxy.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/cluster/prod/app/email/integration/tls-tls-proxy.sh b/cluster/prod/app/email/integration/tls-tls-proxy.sh new file mode 100644 index 0000000..afb7317 --- /dev/null +++ b/cluster/prod/app/email/integration/tls-tls-proxy.sh @@ -0,0 +1,13 @@ +#!/usr/bin/env bash +UPSTREAM=$1 +PROXY_PORT=$2 +socat -dd \ +"openssl-listen:${PROXY_PORT},\ +reuseaddr,\ +fork,\ +cert=/tmp/tls-tls-proxy/rsa.crt,\ +key=/tmp/tls-tls-proxy/rsa.key,\ +verify=0,\ +bind=0.0.0.0" \ +"openssl:${UPSTREAM},\ +verify=0" |