scripts/expand-cert
2021-11-22 12:17:00 -06:00

8 lines
346 B
Bash
Executable file

#!/usr/bin/bash
# Expand the certificate
echo exozy.me {app,calc,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/