Replaced certbot with ACME.sh

This commit is contained in:
2020-10-02 14:35:54 +02:00
parent f3701924f0
commit 1d7bc1e387
7 changed files with 10 additions and 12 deletions

View File

@@ -27,9 +27,9 @@ systemctl reload $webservice
#Enabling SSL
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
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
#Restoring config