scripts/expand-cert
2021-11-24 18:08:08 -06:00

8 lines
337 B
Bash
Executable file

#!/usr/bin/bash
# Expand the certificate
echo exozy.me {chat,ci,cloud,desk,game,git,hub,media,office,portal,server,social,ta180m,tube,www}.exozy.me | sed "s/ /,/g" | xargs sudo certbot certonly --cert-name exozy.me --nginx -n -d
# Give the LDAP user permission to access them
sudo setfacl -R -m user:ldap:r-x /etc/letsencrypt/archive/