File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -72,11 +72,19 @@ if [[ ! -d $TARGET ]] && ! test -b $BLOCK_TARGET; then
7272 exit 1
7373fi
7474
75+ SSLVERSIONMIN=" sslVersionMin = TLSv1.3"
7576if [[ -n ${SSL_VERSION_MIN} ]]; then
7677 # Append sslVersionMin to stunnel conf
7778 SSLVERSIONMIN=" sslVersionMin = ${SSL_VERSION_MIN} "
7879fi
7980
81+ # Notes:
82+ # Below we are setting ciphers = kPSK in stunnel.conf as we're already going
83+ # to default to TLSv1.3 as the minimum. The ciphers setting only applies to
84+ # TLSv1.2 and below, but with ciphers = PSK startup will still run a "per-day"
85+ # regeneration job that will regenerate DH parameters - we can bypass this
86+ # by setting ciphers = kPSK to avoid any Kx=DH ciphers.
87+
8088if [[ -d $TARGET ]]; then
8189 # #############################
8290 # # Filesystem volume, use rsync
@@ -134,7 +142,7 @@ socket = r:TCP_KEEPIDLE=180
134142syslog = no
135143
136144[rsync]
137- ciphers = PSK
145+ ciphers = kPSK
138146PSKsecrets = $PSK_FILE
139147$SSLVERSIONMIN
140148; Port to listen for incoming connections from remote
@@ -180,7 +188,7 @@ socket = r:TCP_KEEPIDLE=180
180188syslog = no
181189
182190[diskrsync]
183- ciphers = PSK
191+ ciphers = kPSK
184192PSKsecrets = $PSK_FILE
185193$SSLVERSIONMIN
186194; Port to listen for incoming connections from remote
You can’t perform that action at this time.
0 commit comments