diff --git a/lib/site-ssl b/lib/site-ssl index e29d789..8b73e5f 100644 --- a/lib/site-ssl +++ b/lib/site-ssl @@ -58,7 +58,9 @@ site_ssl_on() { # Create new certificate [[ $(conf_read debug) == "true" ]] && param="--test-cert" || param="" - if [[ ! -a /etc/letsencrypt/live/$domain/fullchain.pem && $subdomflag == 0 ]]; then + if [[ ! -a /etc/letsencrypt/live/$domain/fullchain.pem && $cache == "-wildcard" ]]; then + sudo certbot certonly --manual --preferred-challenges=dns --no-eff-email --manual-public-ip-logging-ok --agree-tos --staple-ocsp --must-staple --email $cermail -d $domain -d *.$domain $param + elif [[ ! -a /etc/letsencrypt/live/$domain/fullchain.pem && $subdomflag == 0 ]]; then sudo certbot certonly --webroot -w /var/www/$root/htdocs/ -d $domain -d www.$domain --email $cermail --no-eff-email --agree-tos --staple-ocsp --must-staple $param elif [[ ! -a /etc/letsencrypt/live/$domain/fullchain.pem && $subdomflag == 1 ]]; then sudo certbot certonly --webroot -w /var/www/$root/htdocs/ -d $domain --email $cermail --no-eff-email --agree-tos --staple-ocsp --must-staple $param diff --git a/plugins/site b/plugins/site index 94c5328..a0c82d2 100644 --- a/plugins/site +++ b/plugins/site @@ -3,7 +3,7 @@ # Site Manager Plugin (Create, delete and de/activate) # Syntax: site