Last active
November 3, 2022 21:02
-
-
Save Strykar/07b9cd4639e64a7b84a3f940f7bc8b98 to your computer and use it in GitHub Desktop.
acme.sh reloadcmd for Weechat relay SSL cert
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 | |
# 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