set certbot to certonly and fixed TLSv1.3

This commit is contained in:
2020-08-12 14:31:04 +02:00
parent 6e2dc8faf7
commit 7282836297
6 changed files with 12 additions and 11 deletions

View File

@@ -538,9 +538,9 @@ if [ $sslenable = 1 ]; then
msg " Setting up SSL" 8 78
site_ext=ssl
if [ $domainwww = 1 ]; then
certbot --"$webserv" -n -d "$domain" -d "www.$domain" -m "$email" --hsts --redirect --no-eff-email --agree-tos
certbot --"$webserv" certonly -n -d "$domain" -d "www.$domain" -m "$email" --hsts --redirect --no-eff-email --agree-tos
elif [ $domainwww = 0 ]; then
certbot --"$webserv" -n -d "$domain" -m "$email" --hsts --redirect --no-eff-email --agree-tos
certbot --"$webserv" certonly -n -d "$domain" -m "$email" --hsts --redirect --no-eff-email --agree-tos
fi
certbot --"$webserv" -n -d "$hostname" -m "$email" --hsts --redirect --no-eff-email --agree-tos
if curl --retry 2 --retry-delay 1 --output /dev/null --silent --head --fail "$repo"/raw/branch/"$branch"/CoreModules/"$webserv"/ssl-handler.sh; then
@@ -577,7 +577,7 @@ fi
# Services #
##------------##
systemctl reload sshd fail2ban postfix postfix@-
systemctl reload sshd fail2ban postfix postfix@-
##-------##