From e1902acebe81c748719aa860bbf12309ad8ab03d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cristhian=20Mart=C3=ADnez=20Ochoa?= Date: Fri, 31 Aug 2018 20:36:06 -0600 Subject: [PATCH] wildcard support SSL Let's Encrypt Wildcard support. --- lib/site-ssl | 4 +++- plugins/site | 6 +++--- 2 files changed, 6 insertions(+), 4 deletions(-) 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