-
-
Notifications
You must be signed in to change notification settings - Fork 12
Installing SSL certificate into Xabber Server
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