Skip to content

Instantly share code, notes, and snippets.

@mrrcollins
Created April 24, 2019 12:48
Show Gist options
  • Save mrrcollins/ce1971d88656ee8497e9dbcf20afc0b7 to your computer and use it in GitHub Desktop.
Save mrrcollins/ce1971d88656ee8497e9dbcf20afc0b7 to your computer and use it in GitHub Desktop.
#!/bin/bash
cd ~/.znc
sudo certbot -d ZNC.DOMAIN.TLD --manual --manual-public-ip-logging-ok --preferred-challenges dns certonly
sudo cp /etc/letsencrypt/live/ZNC.DOMAIN.TLD/fullchain.pem znc.pem
sudo cat /etc/letsencrypt/live/ZNC.DOMAIN.TLD/privkey.pem >> znc.pem
# Copy certificate over for weechat
cp znc.pem ~/.weechat/ssl/relay.pem
# Inside weechat, in the weechat buffer, use
# /relay sslcertkey
# to load the correct certificate into weechat
echo '*/relay sslcertkey' >~/.weechat/weechat_fifo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment