Skip to content

Instantly share code, notes, and snippets.

@i5heu
Created December 11, 2019 17:52
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 i5heu/acaa1c5019c2354614dd7b3906913b62 to your computer and use it in GitHub Desktop.
Save i5heu/acaa1c5019c2354614dd7b3906913b62 to your computer and use it in GitHub Desktop.
certbot certonly --standalone -d im.openlibre.org
service nginx stop
rm /etc/ejabberd/ejabberd.pem
#cat /etc/letsencrypt/live/im.openlibre.org/fullchain.pem /etc/letsencrypt/live/im.openlibre.org/privkey.pem >> /etc/ejabberd/ejabberd.pem
cat /etc/letsencrypt/live/im.openlibre.org/cert.pem /etc/letsencrypt/live/im.openlibre.org/chain.pem /etc/letsencrypt/live/im.openlibre.org/privkey.pem > /etc/ejabberd/ejabberd.pem
chown ejabberd /etc/ejabberd/ejabberd.pem
service nginx start
service ejabberd restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment