Add script to get certificates
This commit is contained in:
parent
ba3f8a8d25
commit
8feb4ac7d1
1 changed files with 14 additions and 0 deletions
14
certbot-get-certs.sh
Executable file
14
certbot-get-certs.sh
Executable file
|
@ -0,0 +1,14 @@
|
|||
#!/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
|
Loading…
Add table
Reference in a new issue