ejabberd - Comments for "TLS not working, SSL works" https://www.ejabberd.im/node/1425 en Finally got TLS to work! https://www.ejabberd.im/node/1425#comment-3597 <p>I got my hands on a new machine, running CentOS 5.0. The installer for generic linux still fails on TLS support (for me at least).</p> <p>So, I downloaded and built the latest Erlang (as above, but this time a newer release), and as before, crypto:start(). worked fine.</p> <p>I downloaded and built ejabberd-1.1.3 and installed it. It did _not_ work.</p> <p>I then hand-built the directory structure for the hand-built ejabberd to match the installer's directory structure exactly, substituting symlinks for each erlang file, from the new erlang install.</p> <p>Finally, I copied over the installer's ejabberdctl file, since the one that comes in the tools directory of a source build doesn't have any of the added goodies.</p> <p>After a few false starts and tweaks (all my errors to begin with), I now have everything running correctly. I can log in with any Jabber client with TLS, I can do s2s stuff, and I can use https _with TLS_ for admin as well.</p> <p>Whew! I was really hoping to be able to use ejabberd, and now I finally can.</p> <p>Here's hoping that the above will help someone else...</p> Sat, 21 Apr 2007 14:29:19 +0000 hadar comment 3597 at https://www.ejabberd.im re: tls on FreeBSD https://www.ejabberd.im/node/1425#comment-3451 <p>Thanks! TLS works on the same machine (though not in jail). Hmm, maybe I should generate a new certificate and try again within the jail. I'll report back if that's indeed the problem. Just for the record, I am using Erlang port, (not lite), with the base Openssl distribution (not port) on FreeBSD 6.2, also running 1.1.2 server. Since SSL still works so I didn't bother to try a new certificate. (I was migrating/upgrading an existing server, so continue to use the original cert/key.)</p> Fri, 30 Mar 2007 20:55:16 +0000 yushun comment 3451 at https://www.ejabberd.im tls on FreeBSD https://www.ejabberd.im/node/1425#comment-3447 <p>Haven't tried 6.2, but I got tls running fine under FreeBSD 6.1. (running 1.1.2 with LDAP/AD auth, jwchat, logging)<br /> I got the erlang-lite port and built erlang from that. Installed the stable OpenSSL from ports.<br /> I enabled SSL and TLS, but clients are connecting via TLS unless I'm being daft (can connect with 'require tls' checked, connects on 5222)<br /> Here are my notes: (pasted in, so excuse the formatting...)<br /> cd /etc/ejabberd</p> <p>openssl req -new -x509 -newkey rsa:1024 -days 3650 -keyout privkey.pem -out server.pem<br /> openssl rsa -in privkey.pem -out privkey.pem<br /> cat privkey.pem &gt;&gt; server.pem<br /> rm privkey.pem</p> <p>Now edit your ejabberd.cfg file and specify the correct location of your server.pem:</p> <p>{listen, [{5222, ejabberd_c2s, [{access, c2s}, {shaper, c2s_shaper},<br /> starttls, {certfile, "/etc/ejabberd/server.pem"}]},<br /> {5223, ejabberd_c2s, [{access, c2s}, {shaper, c2s_shaper},<br /> ssl, {certfile, "/etc/ejabberd/server.pem"}]},</p> Thu, 29 Mar 2007 20:53:28 +0000 dotdash comment 3447 at https://www.ejabberd.im Just a me-too post. My https://www.ejabberd.im/node/1425#comment-3398 <p>Just a me-too post. My problem is with 1.1.2 on FreeBSD 6.2. But it looks like an Erlang issue, judging from what you find. (See message 002618 on the list archive.)</p> <p>Did anyone get tls or starttls work on 1.1.2 or 1.1.3?</p> Sat, 24 Mar 2007 22:43:34 +0000 yushun comment 3398 at https://www.ejabberd.im