Skip to content

Instantly share code, notes, and snippets.

@derhuerst
Created January 19, 2022 13:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save derhuerst/15da25479a0b154d5ae4bdd1b24287b8 to your computer and use it in GitHub Desktop.
Save derhuerst/15da25479a0b154d5ae4bdd1b24287b8 to your computer and use it in GitHub Desktop.
make Certbot/Let's Encrypt certificates available to other tools
#!/bin/bash
set -e
set -o pipefail
# install & configure Certbot…
# make /etc/letsencrypt accessible to ssl-cert group
chgrp -R ssl-cert /etc/letsencrypt
find /etc/letsencrypt -exec chmod g+r "{}" \;
find /etc/letsencrypt -type d -exec chmod g+x "{}" \;
# allow CoreDNS user to read /etc/letsencrypt
usermod -G ssl-cert coredns
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment