Created
April 24, 2019 12:48
-
-
Save mrrcollins/ce1971d88656ee8497e9dbcf20afc0b7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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