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",
|
"fsPath": "$ROOTPATH$/setup.sh",
|
||||||
"bookmarks": [
|
"bookmarks": [
|
||||||
-1,
|
-1,
|
||||||
30,
|
31,
|
||||||
43,
|
44,
|
||||||
|
677,
|
||||||
-1,
|
-1,
|
||||||
-1,
|
-1,
|
||||||
-1,
|
-1,
|
||||||
-1,
|
-1,
|
||||||
-1,
|
-1,
|
||||||
-1,
|
354
|
||||||
-1
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
12
setup.sh
12
setup.sh
@ -27,6 +27,7 @@ unset CAChainPath
|
|||||||
unset DHPath
|
unset DHPath
|
||||||
unset phpVersion
|
unset phpVersion
|
||||||
unset phpType
|
unset phpType
|
||||||
|
unset noOSCP
|
||||||
|
|
||||||
# set variables
|
# 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])"
|
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
|
done
|
||||||
|
|
||||||
# not using Certbot: get location of CA Certificate Chain
|
# 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
|
while true; do
|
||||||
read -p "What is the path to your primary SSL CA Chain certificate? " inputCAChainPath
|
read -p "What is the path to your primary SSL CA Chain certificate? " inputCAChainPath
|
||||||
case "${inputCAChainPath}" in
|
case "${inputCAChainPath}" in
|
||||||
'')
|
'')
|
||||||
echo -e "\n${err}You cannot have an empty path to your SSL CA Chain certificate${norm}"
|
noOSCP=1
|
||||||
|
break
|
||||||
;;
|
;;
|
||||||
[Xx]*)
|
[Xx]*)
|
||||||
echo -e "\n${cyan}---exiting---\n${norm}"
|
echo -e "\n${cyan}---exiting---\n${norm}"
|
||||||
|
Loading…
Reference in New Issue
Block a user