SHARE
TWEET

gen_cert_quassel.sh

E-werd Sep 12th, 2019 86 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/sh
  2.  
  3. CERT="/var/lib/quassel/quasselCert.pem"
  4. DOMAIN="irc.werd.pw"
  5.  
  6. echo Attempting renewal...
  7. certbot renew
  8.  
  9. echo Creating cert...
  10. cat /etc/letsencrypt/live/$DOMAIN/privkey.pem > $CERT
  11. cat /etc/letsencrypt/live/$DOMAIN/cert.pem >> $CERT
  12. cat /etc/letsencrypt/live/$DOMAIN/chain.pem >> $CERT
  13. chmod 400 $CERT
  14.  
  15. echo Restarting quasselcore service...
  16. rc-service quasselcore restart
  17.  
  18. echo Done!
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top