Skip to content

Instantly share code, notes, and snippets.

@nimajneben
Last active July 8, 2020 21:36
Show Gist options
  • Save nimajneben/6cfdef081824b9f85894c7de53155e6a to your computer and use it in GitHub Desktop.
Save nimajneben/6cfdef081824b9f85894c7de53155e6a to your computer and use it in GitHub Desktop.
icecast compliant certificate from letsencrypt
#!/usr/bin/bash
ICECAST_CERT=/usr/share/icecsast2/icecast.pem
cat $RENEWED_LINEAGE/fullchain.pem $RENEWED_LINEAGE/privkey.pem > $ICECAST_CERT
#We'll make the certificate owned by root and add an ACL for the icecast user.
chown root:root $ICECAST_CERT
chmod 600 $ICECAST_CERT
setfacl -m u:icecast2:r $ICECAST_CERT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment