Connection issues since 18f0f9a50504
Issue #169
new
Hi there!
since the late refactorings, starting on 18f0f9a50504, I've been having issues establishing a connection. The below is from the current latest checkout at a5dba85b9ce6.
Here is the code to reproduce it:
object TinyMain extends App {
val jid = Jid.of("dev@domain.tld")
val xmppClient = {
val sessionConfig = XmppSessionConfiguration
.builder()
.debugger(classOf[VisualDebugger])
.build()
XmppClient.create(jid.getDomain, sessionConfig)
}
xmppClient.connect()
xmppClient.login(jid.getLocal.toString, "pass", "clientname")
}
Here is the error log: Exception in thread "main" java.lang.ExceptionInInitializerError at app.TinyMain.main(TinyMain.scala) Caused by: rocks.xmpp.core.XmppException: javax.net.ssl.SSLException: Unsupported or unrecognized SSL message
The visual debugger shows the client stalled in "initial" status with the following logs:
FINE Trying to connect to domain.tld:5223
FINE Connection has been secured via TLS.
FINE Negotiating stream, waiting until SASL is ready to be negotiated.
The server does answer on this port with the following command:
openssl s_client -connect domain.tld:5223 -alpn xmpp-client -xmpphost domain.tld
Claiming authorship of this issue, I don’t know what happened with my being half-authenticated