Author Topic: Jabberd2 SSL problem in eBox 0.11.101  (Read 3509 times)

guardiola

  • Zen Apprentice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Jabberd2 SSL problem in eBox 0.11.101
« on: July 27, 2008, 07:55:26 pm »
Hello eBoxers  ;D
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!

javi

  • Zen Hero
  • *****
  • Posts: 1042
  • Karma: +0/-0
    • View Profile
Re: Jabberd2 SSL problem in eBox 0.11.101
« Reply #1 on: July 28, 2008, 12:50:11 am »
This obviously a bug!

Thanks a lot for the report!

sixstone

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1417
  • Karma: +26/-0
    • View Profile
    • Sixstone's blog
Re: Jabberd2 SSL problem in eBox 0.11.101
« Reply #2 on: July 28, 2008, 09:10:40 am »
I've just uploaded a patch [1] to fix the c2s.xml template.

Thanks a lot for this bug report ;).

[1] http://trac.ebox-platform.com/changeset/11010
My secret is my silence...