
SSL issue with XMPP
- Atul
- Programming
- September 19, 2024
Table of Contents
I have checked at SSL.com it shows that there is SSL certificate but these XMPP clients(Dino and Gajim) refuses to accept.
I think I have udpate the certificate but prosody server isn’t aware of them.
Yupp I was correct!
prosodyctl --root cert import /etc/letsencrypt/live/
Running this command helped!
Thanks Alex from Comfy guide! https://comfy.guide/server/prosody/#certificates
Further I have added that command to cron job too.
sudo crontab -e
Prosody XMPP Error:
root@atulya:/etc/prosody/certs# systemctl status prosody
× prosody.service - Prosody XMPP Server
Loaded: loaded (/lib/systemd/system/prosody.service; enabled; preset: enabled)
Active: failed (Result: exit-code) since Sun 2024-12-08 08:07:52 UTC; 3s ago
Duration: 20ms
Docs: https://prosody.im/doc
Process: 17730 ExecStart=/usr/bin/prosody -F (code=exited, status=1/FAILURE)
Main PID: 17730 (code=exited, status=1/FAILURE)
CPU: 14ms
Dec 08 08:07:52 atulya systemd[1]: Started prosody.service - Prosody XMPP Server.
Dec 08 08:07:52 atulya prosody[17730]: **************************
Dec 08 08:07:52 atulya prosody[17730]: A problem occurred while reading the config file /etc/prosody/prosody.cfg.lua
Dec 08 08:07:52 atulya prosody[17730]: Error: /usr/share/lua/5.1/prosody/core/configmanager.lua:226: cannot open /etc/prosody/conf.d: No such file or directory
Dec 08 08:07:52 atulya prosody[17730]: More help on configuring Prosody can be found at https://prosody.im/doc/configure
Dec 08 08:07:52 atulya prosody[17730]: Good luck!
Dec 08 08:07:52 atulya prosody[17730]: **************************
Dec 08 08:07:52 atulya systemd[1]: prosody.service: Main process exited, code=exited, status=1/FAILURE
Dec 08 08:07:52 atulya systemd[1]: prosody.service: Failed with result 'exit-code'.
Solution:
Create a dir conf.d
mdkir conf.d