Hello,
I am trying to talk to somebody using s2s from my server (on linuxpenguins.xyz) to a friend who is on jabber.org.au, however start_tls appears to be failing.
How do I debug this? The only error I see is "188 Error in p1_tls:send: {error,einval}" which doesn't help me.
2015-06-01 15:55:38.055 [info] <0.475.0>@ejabberd_s2s_out:log_s2s_out:1315 Trying to open s2s connection: linuxpenguins.xyz -> jabber.org.au with TLS=true
2015-06-01 15:55:38.055 [debug] <0.475.0>@ejabberd_s2s_out:open_socket:239 open_socket: {<<"linuxpenguins.xyz">>,<<"jabber.org.au">>,<<"1129367300">>,false}
2015-06-01 15:55:38.056 [debug] <0.475.0>@ejabberd_s2s_out:get_addr_port:1160 srv lookup of 'jabber.org.au': [{0,0,5269,"ms.jabber.org.au"}]
2015-06-01 15:55:38.056 [debug] <0.475.0>@ejabberd_s2s_out:get_addr_port:1181 srv lookup of 'jabber.org.au': [{<<"ms.jabber.org.au">>,5269}]
2015-06-01 15:55:38.065 [debug] <0.475.0>@ejabberd_s2s_out:get_addrs:1246 inet of ms.jabber.org.au resolved to: [{103,4,235,188}]
2015-06-01 15:55:38.065 [debug] <0.475.0>@ejabberd_s2s_out:open_socket2:320 s2s_out: connecting to {103,4,235,188}:5269
2015-06-01 15:55:38.767 [debug] <0.476.0>@ejabberd_receiver:process_data:343 Received XML on stream = <<"<?xml version='1.0'?><stream:stream xmlns:stream='http://etherx.jabber.org/streams' xmlns='jabber:server' xmlns:db='jabber:server:dialback' id='587810812' version='1.0'>">>
2015-06-01 15:55:38.767 [debug] <0.476.0>@ejabberd_receiver:process_data:343 Received XML on stream = <<"<stream:features><starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/><c xmlns='http://jabber.org/protocol/caps' hash='sha-1' node='http://www.process-one.net/en/ejabberd/' ver='rhRmOa0UB0xOZGhZh5XS0Jm2ZCI='/></stream:features>">>
2015-06-01 15:55:39.118 [debug] <0.476.0>@ejabberd_receiver:process_data:343 Received XML on stream = <<"<proceed xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>">>
2015-06-01 15:55:39.118 [debug] <0.475.0>@ejabberd_s2s_out:wait_for_starttls_proceed:744 starttls: {<<"linuxpenguins.xyz">>,<<"jabber.org.au">>}
2015-06-01 15:55:39.119 [debug] <0.476.0>@ejabberd_receiver:process_data:343 Received XML on stream = <<>>
2015-06-01 15:55:39.476 [debug] <0.476.0>@ejabberd_receiver:process_data:343 Received XML on stream = <<>>
2015-06-01 15:55:40.697 [debug] <0.476.0>@ejabberd_receiver:process_data:343 Received XML on stream = <<>>
2015-06-01 15:55:40.700 [debug] <0.476.0>@ejabberd_receiver:process_data:343 Received XML on stream = <<>>
2015-06-01 15:55:41.139 [debug] <0.475.0>@ejabberd_socket:send:188 Error in p1_tls:send: {error,einval}
2015-06-01 15:55:41.139 [debug] <0.475.0>@ejabberd_s2s_out:terminate:1016 terminated: {normal,wait_for_starttls_proceed}