Skip to content

Installing SSL certificate into Xabber Server

Andrey Gagarin edited this page Sep 10, 2020 · 3 revisions

After you obtain your certificate - you need to copy certificate to installation directory. By default Xabber Server will be installed into /opt/xabberserver/xabberserver/.

You need to delete self-signed certificate.

rm /opt/xabberserver/xabberserver/certs/server.pem

After you need to create symlinks to Let's Encrypt certificate:

ln -s /etc/letsencrypt/live/yourdomain.com/* /opt/xabberserver/xabberserver/certs/

Ensure, what Xabber Server has access to certs. Change permissions for folders of letsencrypt:

find /etc/letsencrypt/ -type d -exec chmod 755 {} \;

Change permissions for *.pem files:

find /etc/letsencrypt/archive/ -type f -exec chmod 644 {} \;

Ensure, what your Xabber Server user can access files:

chown -R xabberserver:xabberserver /opt/xabberserver/xabberserver/certs/

After you need to restart service:

sudo systemctl restart xabberserver.service

Contents

Clone this wiki locally