added preamble to CACert section and provision for skipping
This commit is contained in:
parent
335be15355
commit
a539c547da
8
.vscode/numbered-bookmarks.json
vendored
8
.vscode/numbered-bookmarks.json
vendored
@ -4,15 +4,15 @@
|
||||
"fsPath": "$ROOTPATH$/setup.sh",
|
||||
"bookmarks": [
|
||||
-1,
|
||||
30,
|
||||
43,
|
||||
31,
|
||||
44,
|
||||
677,
|
||||
-1,
|
||||
-1,
|
||||
-1,
|
||||
-1,
|
||||
-1,
|
||||
-1,
|
||||
-1
|
||||
354
|
||||
]
|
||||
}
|
||||
]
|
||||
|
12
setup.sh
12
setup.sh
@ -27,6 +27,7 @@ unset CAChainPath
|
||||
unset DHPath
|
||||
unset phpVersion
|
||||
unset phpType
|
||||
unset noOSCP
|
||||
|
||||
# set variables
|
||||
regexIP4="(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])"
|
||||
@ -339,11 +340,20 @@ if [ "${useCertbot}" -eq 0 ]; then
|
||||
done
|
||||
|
||||
# not using Certbot: get location of CA Certificate Chain
|
||||
echo -e "\n${mag}Your full Certificate Authority certificate-chain (root and any/all"
|
||||
echo "intermediate certificates bundled in one file) is required if you want NGINX"
|
||||
echo "to provide OSCP stapling for your visitors. In most cases, you want this."
|
||||
echo "If you don't have your CA chain, you can fill in the filename you'll be saving"
|
||||
echo "it as in the future and confirm it when the scripts prompts you. In that"
|
||||
echo -e "case, however, ${warn}NGINX will not work until that file actually exists.${mag}"
|
||||
echo -e "\nIf you are using a self-signed certificate or do not want OSCP stapling, leave"
|
||||
echo -e "this blank ${warn}(hit enter)${mag} and the relevant configuration section will be disabled.${norm}"
|
||||
while true; do
|
||||
read -p "What is the path to your primary SSL CA Chain certificate? " inputCAChainPath
|
||||
case "${inputCAChainPath}" in
|
||||
'')
|
||||
echo -e "\n${err}You cannot have an empty path to your SSL CA Chain certificate${norm}"
|
||||
noOSCP=1
|
||||
break
|
||||
;;
|
||||
[Xx]*)
|
||||
echo -e "\n${cyan}---exiting---\n${norm}"
|
||||
|
Loading…
Reference in New Issue
Block a user