added warning to certificate preamble about missing cert

This commit is contained in:
Asif Bacchus 2019-01-06 05:43:24 -07:00
parent fe83910b8d
commit a4339af027
2 changed files with 6 additions and 5 deletions

View File

@ -6,13 +6,13 @@
-1,
30,
44,
699,
700,
-1,
-1,
-1,
-1,
-1,
691
692
]
}
]

View File

@ -279,10 +279,11 @@ fi
# only process manual certificate paths if using SSL and NOT using Certbot
if [ "${useSSL}" -eq 1 ] && [ "${useCertbot}" -eq 0 ]; then
echo -e "\n${mag}NGINX requires the full paths to your PEM formatted certificates, private keys"
echo "and your CA-chain in order to serve pages securely and properly over SSL."
echo -e "\n${mag}NGINX requires the full paths to your PEM formatted certificate and"
echo "private key in order to serve pages securely and properly over SSL."
echo "If you haven't generated/copied your certificates yet, you can enter the"
echo -e "paths where they will be located and confirm when prompted by the script.${norm}"
echo "paths where they will be located and confirm when prompted by the script."
echo -e "${warn}NGINX will NOT work until these files are actually copied!${norm}"
# not using Certbot: get location of certificate
while true; do
read -p "What is the path to your primary SSL certificate? " inputCertPath