fix(SCRIPT): fix erroneous DHparam check when not using SSL
This commit is contained in:
parent
5a313ea778
commit
d3b9229d85
@ -120,7 +120,7 @@ if [ "$SSL_KEY" ]; then checkExist 'file' "$SSL_KEY"; fi
|
|||||||
if [ "$SSL_CHAIN" ]; then checkExist 'file' "$SSL_CHAIN"; fi
|
if [ "$SSL_CHAIN" ]; then checkExist 'file' "$SSL_CHAIN"; fi
|
||||||
|
|
||||||
# check for DHparam if using TLS1.2
|
# check for DHparam if using TLS1.2
|
||||||
if [ "$TLS13_ONLY" = 'FALSE' ]; then
|
if [ "$SSL_CERT" ] && [ "$TLS13_ONLY" = 'FALSE' ]; then
|
||||||
if [ -z "$DH" ]; then
|
if [ -z "$DH" ]; then
|
||||||
printf "%s\nA DHparam file must be specified when using TLS 1.2. Exiting.%s\n" "$err" "$norm"
|
printf "%s\nA DHparam file must be specified when using TLS 1.2. Exiting.%s\n" "$err" "$norm"
|
||||||
exit 5
|
exit 5
|
||||||
|
Loading…
Reference in New Issue
Block a user