working
This commit is contained in:
19
stunnel.sh
Normal file
19
stunnel.sh
Normal 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' ',')
|
||||
Reference in New Issue
Block a user