setup/certbot/cert

23 lines
466 B
Bash
Executable file

#!/bin/bash
function cert-cf {
certbot certonly \
--agree-tos \
--dns-cloudflare \
--dns-cloudflare-credentials /etc/letsencrypt/cf.ini \
--dns-cloudflare-propagation-seconds 30 \
--register-unsafely-without-email \
--cert-name $@
}
#!/bin/bash
function cert-wr {
rm -rf /var/www/certbot
mkdir -p /var/www/certbot
certbot certonly \
--agree-tos \
--webroot \
-w /var/www/certbot \
--register-unsafely-without-email \
--cert-name $@
}