2022-03-01 23:30:08 +00:00
|
|
|
#/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
sudo certbot certonly --standalone -d "$1" \
|
|
|
|
--non-interactive \
|
|
|
|
--agree-tos \
|
2022-03-06 20:00:55 +00:00
|
|
|
--email webmaster@ansol.org \
|
2022-03-01 23:30:08 +00:00
|
|
|
--preferred-challenges http \
|
|
|
|
--http-01-address 127.0.0.1 \
|
|
|
|
--http-01-port 8888 \
|
|
|
|
|
|
|
|
cat /etc/letsencrypt/live/"$1"/fullchain.pem /etc/letsencrypt/live/"$1"/privkey.pem > /etc/haproxy/ssl/"$1".pem
|