From f301f9bbf0a8dfbccbaed664bd731fdd1efbcb91 Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Mon, 18 Nov 2019 05:20:04 -0700 Subject: [PATCH] fix missing existence check on TLS params --- ab-nginx.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ab-nginx.sh b/ab-nginx.sh index 470dac6..196f885 100755 --- a/ab-nginx.sh +++ b/ab-nginx.sh @@ -96,9 +96,9 @@ if [ "$TLS13_ONLY" ]; then fi # check for certs if using SSL -checkExist 'file' "$SSL_CERT" -checkExist 'file' "$SSL_KEY" -checkExist 'file' "$SSL_CHAIN" +if [ "$SSL_CERT" ]; then checkExist 'file' "$SSL_CERT"; fi +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