[ejabberd] Cannot connect via SSL
Mickael Remond
mickael.remond at erlang-fr.org
Wed Mar 10 17:06:22 MSK 2004
* ??????? ????????? <mitya at cavia.pp.ru> [2004-02-04 11:15:02 +0300]:
> Hello!
>
> I use FreeBSD-current and erlang-r9c0_4.
>
> I have the following in my ejabberd.cfg:
>
> {listen, [{5222, ejabberd_c2s,
> [{access, c2s},
> {shaper, c2s_shaper}]},
> {5223, ejabberd_c2s,
> [{access, c2s},
> {shaper, c2s_shaper},
> {ssl, [{certfile, "./ssl.pem"}]}
> ]},
> {5269, ejabberd_s2s_in,
> [{shaper, s2s_shaper}]}]}.
>
> I tried both ejabberd-0.5 and the version from today's CVS.
>
> When I am trying to connect with SSL enabled, I get in ejabber log:
>
> =INFO REPORT==== 2-Feb-2004::13:03:57 ===
> I(<0.241.0>:ejabberd_listener:92): ({sslsocket,7,<0.2268.0>}) Accepted SSL conne
> ction {{194,87,2,103},49377} -> {{194,87,2,103},5223}
>
>
> TKabber prints the following in the console window:
>
> jlib: (jlib::disconnect)
> jlib: (jlib::connect) Socket:'sock4' Server:'tear.demos.ru' ConnectionID:'1'
> jlib: (jlib::outmsg) (1) '<stream:stream xmlns:stream='http://etherx.jabber.org/
> streams' xmlns='jabber:client' to='tear.demos.ru'>'
> jlib: (jlib::inmsg) (1) ''
> jlib: error (jlib::inmsg) Socket is closed by server. Disconnecting...
> RECONNECT 1
>
>
> At the same time, I can successfully login without SSL.
I have exactly the same symptoms. This is strange, because, on a
previous install, I was using SSL without problem.
I am using latest CVS ejabberd version.
--
Mickaël Rémond
http://www.erlang-projects.org/
More information about the ejabberd
mailing list