From d3b9229d851e32493a41fd6eb46c47b178492644 Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Wed, 6 Jan 2021 00:59:52 -0700 Subject: [PATCH] fix(SCRIPT): fix erroneous DHparam check when not using SSL --- ab-nginx.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ab-nginx.sh b/ab-nginx.sh index ae6636b..59213f0 100755 --- a/ab-nginx.sh +++ b/ab-nginx.sh @@ -120,7 +120,7 @@ if [ "$SSL_KEY" ]; then checkExist 'file' "$SSL_KEY"; fi if [ "$SSL_CHAIN" ]; then checkExist 'file' "$SSL_CHAIN"; fi # check for DHparam if using TLS1.2 -if [ "$TLS13_ONLY" = 'FALSE' ]; then +if [ "$SSL_CERT" ] && [ "$TLS13_ONLY" = 'FALSE' ]; then if [ -z "$DH" ]; then printf "%s\nA DHparam file must be specified when using TLS 1.2. Exiting.%s\n" "$err" "$norm" exit 5