retry fixing tls version

This commit is contained in:
Timo Makinen 2019-05-21 10:21:53 +03:00
parent 26e94be9c8
commit cc47310d89
2 changed files with 4 additions and 5 deletions

View file

@ -9,9 +9,9 @@
- stunnel
- name: install rsync stunnel wrapper
copy:
template:
dest: /usr/local/libexec/rsync-ssl-tunnel
src: rsync-ssl-tunnel
src: rsync-ssl-tunnel.j2
mode: 0755
owner: root
group: root

View file

@ -1,7 +1,5 @@
#!/bin/bash
echo "$@" > /tmp/foo.out
key="/etc/pki/tls/private/$(hostname -f).key"
cert="/etc/pki/tls/certs/$(hostname -f).crt"
cafile="/etc/pki/tls/certs/ca.crt"
@ -17,7 +15,7 @@ hostname=$1
shift
if [ x"$hostname" = x -o x"$1" != x"rsync" -o x"$2" != x"--server" -o x"$3" != x"--daemon" ]; then
echo "Usage: stunnel-rsync HOSTNAME rsync --server --daemon ." 1>&2
echo "Usage: rsync-ssl-tunnel HOSTNAME rsync --server --daemon ." 1>&2
exit 1
fi
@ -32,4 +30,5 @@ verify = 2
cert = $cert
key = $key
CAfile = $cafile
sslVersion = {{ tls_protocols }}
EOF