openssl: s_client seems to hang with -starttls xmpp

When I run s_client against my xmpp server (ejabberd), it seems to hang and does not print out the certificate info that I see when I connect to other types of servers (like http):

$ openssl s_client -servername chat.example.com -connect chat.example.com:5222 -starttls xmpp -verify 100
verify depth is 100
CONNECTED(00000003)

Other TLS checkers do seem to be OK with the servers I’ve tried, and clients and other servers also seem to approve of the connections so I think there might be something going on in s_client’s xmpp code.

I also found someone talking about this in Debian’s bug tracker:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=747469#5

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 20 (12 by maintainers)

Commits related to this issue

Most upvoted comments

Like I said earlier, -servername sets the Server Name Indication at the TLS level, nothing else. OpenSSL 1.0.2 has no other way to indicate a server name. OpenSSL does have the added option -xmpphost