nsbin/certbot-get-certs.sh
2022-07-11 20:46:33 +02:00

14 lines
278 B
Bash
Executable file

#!/bin/sh
if [ $# -lt 1 ]; then
echo $0 domain domain2 domain..
echo "f.i. certbot-get-certs.sh {2..9}.nb3.hjk.li"
exit 1
fi
mail1=sre
mail2=ungleich.ch
for domain in "$@"; do
sudo certbot certonly --standalone --agree-tos -m $mail1@$mail2 -n -d $domain
done