iankelling.org
/
git
/
basic-https-conf
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
452c9b3
)
small doc addition
author
Ian Kelling
<ian@iankelling.org>
Fri, 5 May 2017 15:51:49 +0000
(08:51 -0700)
committer
Ian Kelling
<ian@iankelling.org>
Fri, 5 May 2017 15:51:49 +0000
(08:51 -0700)
web-conf
patch
|
blob
|
history
diff --git
a/web-conf
b/web-conf
index 4dc3974f38d4dc04f79593268c69562d8b2e8bf8..881c68d2f4a0423214898c9c120033ec6eeb1949 100755
(executable)
--- a/
web-conf
+++ b/
web-conf
@@
-52,7
+52,7
@@
EOF
ssl=true
extra_settings=
port=443
ssl=true
extra_settings=
port=443
-temp=$(getopt -l help e:i
:
f:p:r:h "$@") || usage 1
+temp=$(getopt -l help e:if:p:r:h "$@") || usage 1
eval set -- "$temp"
while true; do
case $1 in
eval set -- "$temp"
while true; do
case $1 in
@@
-115,6
+115,7
@@
fi
if $ssl; then
f=$cert_dir/fullchain.pem
if [[ ! -e $f ]] || openssl x509 -checkend 86400 -noout -in $f; then
if $ssl; then
f=$cert_dir/fullchain.pem
if [[ ! -e $f ]] || openssl x509 -checkend 86400 -noout -in $f; then
+ # cerbot needs an existing virtualhost.
$0 -p 80 $t $h
# when generating an example config, add all relevant security options:
# --hsts --staple-ocsp --uir
$0 -p 80 $t $h
# when generating an example config, add all relevant security options:
# --hsts --staple-ocsp --uir