This commit is contained in:
Bel LaPointe
2018-10-05 18:59:02 -06:00
commit 53812eeda3
10 changed files with 230 additions and 0 deletions

19
stunnel.sh Normal file
View File

@@ -0,0 +1,19 @@
#! /bin/bash
# requireCert = yes
# verifyChain = yes | no
# CAfile = path
# cert = path
#client=no
config='
foreground=yes
cert=/etc/server.crt
key=/etc/server.key
[default]
accept=2018
connect=2015
'
echo "$config" > /stunnel.conf
stunnel /stunnel.conf -p $(find / -name "*.pem" | tr '\n' ',')