X-Git-Url: https://iankelling.org/git/?p=basic-https-conf;a=blobdiff_plain;f=web-conf;h=881c68d2f4a0423214898c9c120033ec6eeb1949;hp=4dc3974f38d4dc04f79593268c69562d8b2e8bf8;hb=2a4e0bddd5bde27197fe3de40e410b5b3a89765c;hpb=452c9b3203296546a1ae6c21fa4de5701a73f82a diff --git a/web-conf b/web-conf index 4dc3974..881c68d 100755 --- a/web-conf +++ b/web-conf @@ -52,7 +52,7 @@ EOF 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 @@ -115,6 +115,7 @@ fi 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