Hello eBoxers
I was having a problem setting SSL on Jabber, because it was not starting in SSL only mode. After checking the log in /var/log/jabberd2/c2s.log the following errorr were there:
[error] failed to load local SSL pemfile, SSL will not be available to clients!
then it tried the non-SSL, but since it was disabled:
[error] both normal and SSL ports are disabled, nothing to do!
and then it died.
The problem is the following:
The certificate is in "/var/lib/ebox/conf/ssl.pem/ebox.pem" and the /etc/jabberd2/c2s.xml config file points to "/etc/ebox/ssl.pem/ebox.pem"
The solutions are clear and simple (CHOOSE ONLY ONE!):
1- Create a symlink between both dirs
#ln -s /var/lib/ebox/conf/ssl.pem /etc/ebox/ssl.pem
OR
2 - Create the dir and copy the certificate
#mkdir /etc/ebox/ssl.pem
#cp /var/lib/ebox/conf/ssl.pem/ebox.pem /etc/ebox/ssl.pem/ebox.pem
OR
3 - Edit the c2s.xml and change the line to point to "/var/lib/ebox/conf/ssl.pem/ebox.pem" instead of /etc/ebox/ssl.pem/ebox.pem
Everything works just fine now!