#!/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/