Can't get SSL to work, connections get dropped

I've set up ejabberd 1.1.3 on windows an it seems to be workin fine, but I can't connect to the server using SSL. The server is listening at the 5223 port, telnet localhost 5223 works, non-SSL connection works, but SSL connection gets dropped.

The only information in log files is:
=INFO REPORT==== 2007-04-23 16:06:33 ===
I(<0.221.0>:ejabberd_listener:90): (#Port<0.296>) Accepted connection {{10,10,129,4},1406} -> {{10,10,129,4},5223}

Configuraion lines are:
{listen, [
{5222, ejabberd_c2s, [{access, c2s}, {shaper, c2s_shaper},
starttls, {certfile, "C:\ejabberd.pem"}]},
{8888, ejabberd_c2s, [{access, c2s},
tls, {certfile, "C:\ejabberd.pem"}]},

I've tried changing ports, using different clients, re-creating certificate file, etc.
It seems like some people on this forum had the same problem, but I can't find a solution.

No idea about your problem,

No idea about your problem, but SSL on port 5223 is obsolete.

The nice way of encrypting connections is STARTTLS on port 5222, which most clients already support: Gajim, GAIM, Psi 0.11 beta, Tkabber, Pandion...

I think the following two

I think the following two lines are required to be in ejabberd.cfg if you want to support SSL on port 5223.

{5222, ejabberd_c2s, [{access, c2s}, {shaper, c2s_shaper}]},
{5223, ejabberd_c2s, [{access, c2s}, ssl, {certfile, "/var/lib/ejabberd/ssl/server.pem"}]},

Yours Truly,
Gautam.

Try

Try to type the path to the pem file using "/" instead of "\"
not "C:\ejabberd.pem"
but "C:/ejabberd.pem"
It was my problem when I tried to execute TLS or SSL on ejabberd on Windows!)
Sorry for my English!)

Syndicate content