Explizit set cipher, default to 'cipher BF-CBC'.

This commit is contained in:
2018-08-23 16:54:32 +02:00
parent 959b28cf2f
commit 851d476bfd
3 changed files with 19 additions and 5 deletions

View File

@@ -520,9 +520,15 @@ cat << EOF >> "$_client_conf_file" 2> $log_file
EOF
if [[ -n "$SERVER_CIPHER" ]]; then
cat <<EOF >> "$_client_conf_file" 2>> "$log_file"
if [[ "${SERVER_CIPHER,,}" = "none" ]]; then
cat <<EOF >> "$_client_conf_file" 2>> "$log_file"
cipher BF-CBC
EOF
else
cat <<EOF >> "$_client_conf_file" 2>> "$log_file"
cipher $SERVER_CIPHER
EOF
fi
else
cat <<EOF >> "$_client_conf_file" 2>> "$log_file"
cipher BF-CBC