Replaced certbot with ACME.sh
This commit is contained in:
@@ -218,9 +218,9 @@ msg " Setting up SSL"
|
|||||||
fi
|
fi
|
||||||
site_ext=ssl
|
site_ext=ssl
|
||||||
if [ $domainwww = 1 ]; then
|
if [ $domainwww = 1 ]; then
|
||||||
certbot --"$certwebserv" certonly -n -d "$domain" -d "www.$domain" -m "$email" --hsts --redirect --no-eff-email --agree-tos
|
/opt/acmesh/acme.sh --config-home '/etc/acmesh/data' --issue --"$certwebserv" --ocsp --keylength 'ec-384' -d "$domain" -d "www.$domain"
|
||||||
elif [ $domainwww = 0 ]; then
|
elif [ $domainwww = 0 ]; then
|
||||||
certbot --"$certwebserv" certonly -n -d "$domain" -m "$email" --hsts --redirect --no-eff-email --agree-tos
|
/opt/acmesh/acme.sh --config-home '/etc/acmesh/data' --issue --"$certwebserv" --ocsp --keylength 'ec-384' -d "$domain"
|
||||||
fi
|
fi
|
||||||
if curl --retry 2 --retry-delay 1 --output /dev/null --silent --head --fail "$repo"/raw/"$branchtype"/"$branch"/CoreModules/"$webserv"/ssl-handler.sh; then
|
if curl --retry 2 --retry-delay 1 --output /dev/null --silent --head --fail "$repo"/raw/"$branchtype"/"$branch"/CoreModules/"$webserv"/ssl-handler.sh; then
|
||||||
source <(curl --retry 7 --retry-delay 5 -s "$repo"/raw/"$branchtype"/"$branch"/CoreModules/"$webserv"/ssl-handler.sh)
|
source <(curl --retry 7 --retry-delay 5 -s "$repo"/raw/"$branchtype"/"$branch"/CoreModules/"$webserv"/ssl-handler.sh)
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
apache2 libapache2-mod-fcgid python-certbot-apache
|
apache2 libapache2-mod-fcgid
|
||||||
@@ -10,8 +10,6 @@ curl --retry 7 --retry-delay 5 -s https://git.ictmaatwerk.com/VPS-scripts/Genera
|
|||||||
|
|
||||||
curl --retry 7 --retry-delay 5 -s https://git.ictmaatwerk.com/VPS-scripts/General/raw/branch/Main/Setup-Repo.sh |repo=universe osrel=$shortdist bash > $OUTPUT 2>&1
|
curl --retry 7 --retry-delay 5 -s https://git.ictmaatwerk.com/VPS-scripts/General/raw/branch/Main/Setup-Repo.sh |repo=universe osrel=$shortdist bash > $OUTPUT 2>&1
|
||||||
curl --retry 7 --retry-delay 5 -s https://git.ictmaatwerk.com/VPS-scripts/General/raw/branch/Main/Setup-Repo.sh |repo=php osrel=$shortdist bash > $OUTPUT 2>&1
|
curl --retry 7 --retry-delay 5 -s https://git.ictmaatwerk.com/VPS-scripts/General/raw/branch/Main/Setup-Repo.sh |repo=php osrel=$shortdist bash > $OUTPUT 2>&1
|
||||||
curl --retry 7 --retry-delay 5 -s https://git.ictmaatwerk.com/VPS-scripts/General/raw/branch/Main/Setup-Repo.sh |repo=certbot osrel=$shortdist bash > $OUTPUT 2>&1
|
|
||||||
|
|
||||||
|
|
||||||
##-------------##
|
##-------------##
|
||||||
# Updates #
|
# Updates #
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
nginx apache2-utils python-certbot-nginx
|
nginx apache2-utils
|
||||||
@@ -1 +1 @@
|
|||||||
nginx apache2-utils python-certbot-nginx
|
nginx apache2-utils
|
||||||
@@ -27,9 +27,9 @@ systemctl reload $webservice
|
|||||||
|
|
||||||
#Enabling SSL
|
#Enabling SSL
|
||||||
if [ $domainwww = 1 ]; then
|
if [ $domainwww = 1 ]; then
|
||||||
certbot --"$webserv" certonly -n -d "$domain" -d "www.$domain" -m "$email" --hsts --redirect --no-eff-email --agree-tos
|
/opt/acmesh/acme.sh --config-home '/etc/acmesh/data' --issue --"$certwebserv" --ocsp --keylength 'ec-384' -d "$domain" -d "www.$domain"
|
||||||
elif [ $domainwww = 0 ]; then
|
elif [ $domainwww = 0 ]; then
|
||||||
certbot --"$webserv" certonly -n -d "$domain" -m "$email" --hsts --redirect --no-eff-email --agree-tos
|
/opt/acmesh/acme.sh --config-home '/etc/acmesh/data' --issue --"$certwebserv" --ocsp --keylength 'ec-384' -d "$domain"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#Restoring config
|
#Restoring config
|
||||||
|
|||||||
@@ -631,11 +631,11 @@ if [ $sslenable = 1 ]; then
|
|||||||
fi
|
fi
|
||||||
site_ext=ssl
|
site_ext=ssl
|
||||||
if [ $domainwww = 1 ]; then
|
if [ $domainwww = 1 ]; then
|
||||||
certbot --"$certwebserv" certonly -n -d "$domain" -d "www.$domain" -m "$email" --hsts --redirect --no-eff-email --agree-tos
|
/opt/acmesh/acme.sh --config-home '/etc/acmesh/data' --issue --"$certwebserv" --ocsp --keylength 'ec-384' -d "$domain" -d "www.$domain"
|
||||||
elif [ $domainwww = 0 ]; then
|
elif [ $domainwww = 0 ]; then
|
||||||
certbot --"$certwebserv" certonly -n -d "$domain" -m "$email" --hsts --redirect --no-eff-email --agree-tos
|
/opt/acmesh/acme.sh --config-home '/etc/acmesh/data' --issue --"$certwebserv" --ocsp --keylength 'ec-384' -d "$domain"
|
||||||
fi
|
fi
|
||||||
certbot --"$certwebserv" certonly -n -d "$hostname" -m "$email" --hsts --redirect --no-eff-email --agree-tos
|
/opt/acmesh/acme.sh --config-home '/etc/acmesh/data' --issue --"$certwebserv" --ocsp --keylength 'ec-384' -d "$hostname"
|
||||||
if curl --retry 2 --retry-delay 1 --output /dev/null --silent --head --fail "$repo"/raw/"$branchtype"/"$branch"/CoreModules/"$webserv"/ssl-handler.sh; then
|
if curl --retry 2 --retry-delay 1 --output /dev/null --silent --head --fail "$repo"/raw/"$branchtype"/"$branch"/CoreModules/"$webserv"/ssl-handler.sh; then
|
||||||
sslfr=1 source <(curl --retry 7 --retry-delay 5 -s "$repo"/raw/"$branchtype"/"$branch"/CoreModules/"$webserv"/ssl-handler.sh)
|
sslfr=1 source <(curl --retry 7 --retry-delay 5 -s "$repo"/raw/"$branchtype"/"$branch"/CoreModules/"$webserv"/ssl-handler.sh)
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user