Skip to content

Instantly share code, notes, and snippets.

@Strykar
Last active November 3, 2022 21:02
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 Strykar/07b9cd4639e64a7b84a3f940f7bc8b98 to your computer and use it in GitHub Desktop.
Save Strykar/07b9cd4639e64a7b84a3f940f7bc8b98 to your computer and use it in GitHub Desktop.
acme.sh reloadcmd for Weechat relay SSL cert
#!/bin/bash
# Acme.sh reloadcmd file
set -euf -o pipefail
# Setup the TLS file the way Weechat expects it
/usr/bin/cat /home/strykar/.acme.sh/i5.xxx.in/i5.xxx.in.key > /home/strykar/.config/weechat/ssl/relay.pem
/usr/bin/cat /home/strykar/.acme.sh/i5.xxx.in/fullchain.cer >> /home/strykar/.config/weechat/ssl/relay.pem
# Run the /relay sslcertkey command via Weechat's FIFO to reload the new cert
# Weechat's FIFO plugin must be loaded and running
/usr/bin/echo "*/relay sslcertkey" > /run/user/1000/weechat/weechat_fifo_*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment